![]() |
Routines |
| Prev: B468 | Up: Map | Next: B4A0 |
|
Used by the routine at ProcessDisplayPointer.
Returns at once when the count is zero. Otherwise copies this character's id and script position into the display.
|
||||
| CopyCharacterDisplay | B483 | XOR A | Return at once if the count in B is zero. | |
| B484 | CP B | |||
| B485 | RET Z | |||
| B486 | LD D,$00 | Step to the next schedule entry. | ||
| B488 | PUSH IY | |||
| B48A | ADD IY,DE | |||
| B48C | LD A,(IY+$00) | Copy this character's id to the byte at HL. | ||
| B48F | LD (HL),A | |||
| B490 | INC HL | Step to the next entry, read the script position and store it at the display flag. | ||
| B491 | LD A,(IY+$01) | |||
| B494 | LD (HL),A | |||
| B495 | DEC HL | Step back one byte. | ||
| B496 | OR (IY+$00) | Merge this character's id into the result. | ||
| B499 | POP IY | Restore the schedule entry from the stack. | ||
| B49B | RET Z | Return when the character id and the script position are both clear. | ||
| B49C | DEC B | Count down one and step past this entry. | ||
| B49D | INC HL | |||
| B49E | INC HL | |||
| B49F | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: B468 | Up: Map | Next: B4A0 |