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

454 OSWORD call with A=&0A Read character definition Characters are displayed on the screen as an eight by eight matrix of dots. The pattern of dots for each character in MODES 0 to 6 , including user defined characters, is stored as eight bytes (see chapter 34). This call enables the eight bytes to be read into a block of memory starting at an address given in X and Y. On entry the ASCII code of the character is the first entry on the block. On exit the block contains data as shown below. X and Y are undefined. XY Character required XY+1 Top row of displayed character XY+2 Second row . . .

XY+8 Bottom row of displayed character OSWORD call with A=&0B Read palette The reader will be aware that each logical colour (0 to 15) has an actual (or displayed) colour associated with it. The actual to logical association can be changed with VDU19 . This OSWORD call enables one to determine the actual colour currently assigned to each logical colour. On entry the X and Y registers contain the address of the start of a block of five bytes. The first byte should contain a value representing the logical colour. On exit the following four bytes will contain the same four numbers used when VDU19 assigned an actual colour to the same logical colour.

Suppose that logical colour 2 was in fact set to blue (4) by the statement VDU 19,2,4,0,0,0 then this call would produce the following result: XY 2 Logical colour XY+1 4 Actual colour (blue) XY+2 0 XY+3 0 } XY+4 0 } Padding zeros for future expansion