Routines
| Prev: AD57 | Up: Map | Next: AE6A |
AE59: Fill in a word reference at HL from DE, unless HL already has one
|
Byte by byte; HL and DE both move on two.
|
||||||||||||||
| AE59 | LD A,(HL) | Read the byte HL points at into A - Copy the word at DE to HL unless HL already holds one (Z if it was empty) | ||||||||||||
| AE5A | INC HL | Step HL on to the next byte | ||||||||||||
| AE5B | OR (HL) | Set in A the bits that are set in the byte HL points at | ||||||||||||
| AE5C | DEC HL | Step HL back one byte | ||||||||||||
| AE5D | JR NZ,$AE61 | If the result is not zero, skip ahead to AE61 | ||||||||||||
| AE5F | LD A,(DE) | Read the byte DE points at into A | ||||||||||||
| AE60 | LD (HL),A | Store A at the address HL points to | ||||||||||||
| AE61 | INC HL | Step HL on to the next byte | ||||||||||||
| AE62 | INC DE | Step DE on to the next byte | ||||||||||||
| AE63 | JR NZ,$AE67 | If the result is not zero, skip ahead to AE67 | ||||||||||||
| AE65 | LD A,(DE) | Read the byte DE points at into A | ||||||||||||
| AE66 | LD (HL),A | Store A at the address HL points to | ||||||||||||
| AE67 | INC HL | Step HL on to the next byte | ||||||||||||
| AE68 | INC DE | Step DE on to the next byte | ||||||||||||
| AE69 | RET | Return to the caller | ||||||||||||
| Prev: AD57 | Up: Map | Next: AE6A |