![]() |
Routines |
| Prev: 38674 | Up: Map | Next: 38725 |
|
||||||||
| 38693 | PUSH DE | Store DE | ||||||
| 38694 | LD A,78 | Store 78 (yellow INK, blue PAPER, BRIGHT) at 23695 | ||||||
| 38696 | LD (23695),A | ... | ||||||
| 38699 | LD HL,(36488) | Load HL with (video) memory location to start printing character | ||||||
| 38702 | EX (SP),HL | Swap registers | ||||||
|
At this point, HL points to text to be printed, and (SP), i.e. PUSHed value, contains display file address to start printing character
|
||||||||
| 38703 | LD DE,(65530) | Load DE with new display file address to print character... | ||||||
| 38707 | LD (36488),DE | ...and update printing routine with this location | ||||||
| 38711 | CALL 36725 | Print text at location HL to screen | ||||||
| 38714 | LD HL,(36488) | Load display file address just printed to into HL | ||||||
| 38717 | LD (65530),HL | Store at 65530 (where it was just read from!) | ||||||
| 38720 | POP HL | Restore original memory location that was replaced in printing routine... | ||||||
| 38721 | LD (36488),HL | ...and put it back into the printing routine | ||||||
| 38724 | RET | Return | ||||||
| Prev: 38674 | Up: Map | Next: 38725 |