![]() |
Routines |
| Prev: 8E78 | Up: Map | Next: 8E92 |
|
PRINT AT second parameter handler. Called on the byte immediately following the X parameter. Wraps the Y (row) parameter at BC and stores it to 8000 before restoring the default handler.
|
||||
| PrintHandler_PrintAt_Y | 8E82 | LD HL,$8DE3 | Reset PrintState_Handler to PrintHandler (default handler). | |
| 8E85 | LD ($800A),HL | |||
| 8E88 | CP $BC | If the Y parameter is less than BC jump to PrintHandler_PrintAt_Y_Store. | ||
| 8E8A | JR C,PrintHandler_PrintAt_Y_Store | |||
| 8E8C | SUB $BC | Subtract BC to wrap the Y position. | ||
| PrintHandler_PrintAt_Y_Store | 8E8E | LD ($8000),A | Write the Y position to *PrintState_Y. | |
| 8E91 | RET | Return. | ||
| Prev: 8E78 | Up: Map | Next: 8E92 |