![]() |
Routines |
| Prev: 868D | Up: Map | Next: 86B9 |
|
Each player has a pointer on the menu (P1 from the left, P2 from the right) that slides to the line of the control method chosen. The line wanted is the method's entry in method_lines; the pointer moves down one line a pass towards it and up four a pass, so it creeps down and snaps back up when the method wraps round from Interface II to Keyboard. It is drawn with draw_bitmap, which writes the graphic over what is there: the blank lines at the graphic's foot and head rub out the trail.
|
||||||||||
| move_method_arrow | 8690 | LD A,(IX+$02) | The line wanted against the line it is at | |||||||
| 8693 | LD HL,method_lines | |||||||||
| 8696 | CALL add_a_to_hl | |||||||||
| 8699 | LD A,(HL) | |||||||||
| 869A | SUB (IX+$01) | |||||||||
| 869D | JR Z,move_method_arrow_1 | |||||||||
| 869F | BIT 7,A | Below where it is: one line down | ||||||||
| 86A1 | JR NZ,move_method_arrow_0 | |||||||||
| 86A3 | INC (IX+$01) | |||||||||
| 86A6 | JR move_method_arrow_1 | |||||||||
| move_method_arrow_0 | 86A8 | LD A,(IX+$01) | Above: four lines up | |||||||
| 86AB | SUB $04 | |||||||||
| 86AD | LD (IX+$01),A | |||||||||
| move_method_arrow_1 | 86B0 | LD L,(IX+$00) | Draw it at its x and line | |||||||
| 86B3 | LD H,(IX+$01) | |||||||||
| 86B6 | JP draw_bitmap | |||||||||
| Prev: 868D | Up: Map | Next: 86B9 |