![]() |
Routines |
| Prev: 8EAA | Up: Map | Next: 8EC7 |
|
Right margin parameter handler. Called on the byte immediately following a 19 control code. Stores the right margin X position to 8006. If the parameter is less than 80 a wrap flag is set in 8007 and 80 is OR'd into the value before storing.
|
||||
| PrintHandler_RightMargin | 8EB3 | LD HL,$8DE3 | Reset PrintState_Handler to PrintHandler (default handler). | |
| 8EB6 | LD ($800A),HL | |||
| 8EB9 | CP $80 | If the parameter is 80 or higher, jump to PrintHandler_RightMargin_Store to store it directly. | ||
| 8EBB | JR NC,PrintHandler_RightMargin_Store | |||
| 8EBD | SET 0,(IX+$07) | Set the wrap flag (bit 0 of *8007). | ||
| 8EC1 | OR %10000000 | OR 80 into the parameter. | ||
| PrintHandler_RightMargin_Store | 8EC3 | LD ($8006),A | Write the parameter to *PrintState_RightMargin (right margin X position). | |
| 8EC6 | RET | Return. | ||
| Prev: 8EAA | Up: Map | Next: 8EC7 |