![]() |
Routines |
| Prev: C839 | Up: Map | Next: C889 |
|
Used by the routine at NEW_GAME.
The panel down the left of the screen: two uprights in character columns 1 and 4, from the top row to the bottom, joined along the bottom row, in bright magenta. The eleven things the knight carries are drawn between them, a picture two characters square each, one above the other (PICK_UP_THING). The five pieces are the characters at PANEL_CHARS, in this order: 0 the top of an upright, 1 an upright, 2 the bottom left corner, 3 the bar, 4 the bottom right corner -- so the foot is printed 2, 3, 3, 4. Called once a game, by NEW_GAME.
|
||||
| DRAW_PANEL_FRAME | C83F | LD A,$43 | bright magenta into A' | |
| C841 | EX AF,AF' | |||
| C842 | LD HL,PANEL_CHARS | the five pieces are codes 0-4 | ||
| C845 | LD (FONT_BASE),HL | |||
| C848 | LD HL,$4001 | column 1: its top, on the top row | ||
| C84B | XOR A | |||
| C84C | CALL PRINT_CHAR_COLOURED | |||
| C84F | CALL NEXT_CHAR_ROW | |||
| C852 | LD A,$01 | then 22 uprights, down to row 22 | ||
| C854 | LD B,$16 | |||
| C856 | CALL PANEL_UPRIGHTS | |||
| C859 | LD A,$02 | row 23: the left corner, two lengths of bar, the right corner | ||
| C85B | CALL PRINT_CHAR_COLOURED | |||
| C85E | INC L | |||
| C85F | LD A,$03 | |||
| C861 | CALL PRINT_CHAR_COLOURED | |||
| C864 | INC L | |||
| C865 | LD A,$03 | |||
| C867 | CALL PRINT_CHAR_COLOURED | |||
| C86A | INC L | |||
| C86B | LD A,$04 | |||
| C86D | CALL PRINT_CHAR_COLOURED | |||
| C870 | LD HL,$4004 | column 4: its top | ||
| C873 | XOR A | |||
| C874 | CALL PRINT_CHAR_COLOURED | |||
| C877 | CALL NEXT_CHAR_ROW | |||
| C87A | LD A,$01 | and 22 uprights, by running into the loop | ||
| C87C | LD B,$16 | |||
| PANEL_UPRIGHTS | C87E | PUSH AF | B pieces A, one below the other | |
| C87F | CALL PRINT_CHAR_COLOURED | |||
| C882 | CALL NEXT_CHAR_ROW | |||
| C885 | POP AF | |||
| C886 | DJNZ PANEL_UPRIGHTS | |||
| C888 | RET | |||
| Prev: C839 | Up: Map | Next: C889 |