![]() |
Routines |
| Prev: 36323 | Up: Map | Next: 36387 |
|
Used by the routines at PrintHandler and PrintHandler_Render.
Carriage return handler: resets the X position to the left margin, then advances the Y position by one font line height (wrapping at 188).
|
||||
| PrintHandler_Newline | 36367 | LD HL,32769 | HL=PrintState_X (X position pointer). | |
| 36370 | LD A,(32773) | Write *PrintState_LeftMargin (left margin X position) to *HL, resetting X to the left margin. | ||
| 36373 | LD (HL),A | |||
| 36374 | DEC HL | HL=PrintState_Y (Y position pointer). | ||
|
This entry point is used by the routine at PrintHandler_Tab.
|
||||
| PrintHandler_AdvanceRow | 36375 | LD A,(HL) | A=*HL + font line height (*PrintState_LineHeight). | |
| 36376 | ADD A,(IX+16) | |||
| 36379 | CP 188 | Wrap the Y position at 188 if it has reached or exceeded that value. | ||
| 36381 | JR C,PrintHandler_AdvanceRow_Store | |||
| 36383 | SUB 188 | Subtract 188 to wrap Y. | ||
| PrintHandler_AdvanceRow_Store | 36385 | LD (HL),A | Write the new Y position back to *HL. | |
| 36386 | RET | Return. | ||
| Prev: 36323 | Up: Map | Next: 36387 |