Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

453 The example figures on the right of the table show first the required decimal value and secondly the two hexadecimal values required. The figures are only illustrative. On exit X and Y are undefined. OSWORD call with A=8 Define an envelope This call is used to define an envelope which can be used by a SOUND statement or equivalent OSWORD call. On entry X and Y point to an address in memory where 14 bytes of data are stored. Y contains the high part of the address and X the low part. The envelope number is stored at XY and the following 13 locations contain data for that envelope. See the entry for the ENVELOPE keyword for more details. On exit X and Y are undefined.

OSWORD call with A=9 Read a pixel This call enables the machine code programmer to read the status of a graphics point at any specified location. On entry X and Y point to a block of five bytes. Y contains the most significant byte of the address and X the least significant byte. On entry the first four bytes are set up thus: XY LSB of X coordinate XY+1 MSB of X coordinate XY+2 LSB of Y coordinate XY+3 MSB of Y coordinate On exit XY+4 contains the logical colour of the point or &FF if the point is off the screen. X and Y are undefined. XY XY+1 XY+2 XY+3 XY+4 XY+5 XY+6 XY+7 Channel Amplitude Pitch Duration LSB MSB LSB MSB LSB MSB LSB MSB 1 -15 200 20 01 00 F1 FF C8 00 14 00