PART FOUR - SECOND EXAMPLE |
|||
---|---|---|---|
LD HL, 22528 | 210058 | Start of Attributes |
|
LD BC, 768 | 010003 | Number of attribute bytes |
|
LOOP |
LD A, (HL) | 7E | Load A with attribute |
ADD 128 | C680 | Toggle on / off FLASH |
|
LD (HL), A | 77 | Return the byte |
|
INC HL | 23 | Next byte |
|
DEC BC | 0B | Decrement counter |
|
LD A, B | 78 | Test if 0 |
|
OR C | B1 | ||
JR NZ, LOOP | 20F6 | If not, repeat |
|
RET | C9 | else return to BASIC |