Prev: 36472 Up: Map Next: 36498
36482: Print Handler: Print At Y
PRINT AT second parameter handler. Called on the byte immediately following the X parameter. Wraps the Y (row) parameter at 188 and stores it to 32768 before restoring the default handler.
PrintHandler_PrintAt_Y 36482 LD HL,36323 Reset PrintState_Handler to PrintHandler (default handler).
36485 LD (32778),HL
36488 CP 188 If the Y parameter is less than 188 jump to PrintHandler_PrintAt_Y_Store.
36490 JR C,PrintHandler_PrintAt_Y_Store
36492 SUB 188 Subtract 188 to wrap the Y position.
PrintHandler_PrintAt_Y_Store 36494 LD (32768),A Write the Y position to *PrintState_Y.
36497 RET Return.
Prev: 36472 Up: Map Next: 36498