Prev: 21E1 Up: Map Next: 22AA
2294: THE 'BORDER' COMMAND ROUTINE
The address of this routine is found in the parameter table.
The parameter of the BORDER command is used with an 'OUT' command to actually alter the colour of the border. The parameter is then saved in the system variable BORDCR.
Input
Output
BORDER 2294 CALL FIND_INT1 The parameter is fetched and its range is tested.
2297 CP $08
2299 JR NC,REPORT_K
229B OUT ($FE),A The 'OUT' instruction is then used to set the border colour.
229D RLCA The parameter is then multiplied by eight.
229E RLCA
229F RLCA
22A0 BIT 5,A Is the border colour a 'light' colour?
22A2 JR NZ,BORDER_1 Jump if so (the INK colour will be black).
22A4 XOR $07 Change the INK colour to white.
BORDER_1 22A6 LD ($5C48),A Set the system variable (BORDCR) as required and return.
22A9 RET
Prev: 21E1 Up: Map Next: 22AA