Prev: 36522 Up: Map Next: 36551
36531: Print Handler: Right Margin
Right margin parameter handler. Called on the byte immediately following a 25 control code. Stores the right margin X position to 32774. If the parameter is less than 128 a wrap flag is set in 32775 and 128 is OR'd into the value before storing.
PrintHandler_RightMargin 36531 LD HL,36323 Reset PrintState_Handler to PrintHandler (default handler).
36534 LD (32778),HL
36537 CP 128 If the parameter is 128 or higher, jump to PrintHandler_RightMargin_Store to store it directly.
36539 JR NC,PrintHandler_RightMargin_Store
36541 SET 0,(IX+7) Set the wrap flag (bit 0 of *32775).
36545 OR %10000000 OR 128 into the parameter.
PrintHandler_RightMargin_Store 36547 LD (32774),A Write the parameter to *PrintState_RightMargin (right margin X position).
36550 RET Return.
Prev: 36522 Up: Map Next: 36551