Prev: 47603 Up: Map Next: 47703
47665: Move hand cursor down and update menu item highlighting
Used by the routine at 47502.
47665 LD A,(23479) Load menu hand cursor's current y-coordinate into A
47668 LD HL,23475 If height available to menu hand cursor to move down is the same as the cursor's current y-coordinate...
47671 CP (HL) ...i.e. the cursor cannot move any further down...
47672 JP Z,47571 ...then jump to 47571 (return to menu input handling routine)
47675 LD (23478),A Store y-coordinate (pixels) at 23478
47678 PUSH AF Store AF (A = menu hand cursor's y-coordinate, in pixels)
47679 ADD A,5 Add five (as the "finger" of the cursor naturally points five pixels below the cursor's actual position)
47681 RRCA Divide this new y-coordinate by eight to get y-coordinate in characters...
47682 RRCA ...
47683 RRCA ...
47684 AND 31 ...
47686 LD C,A Load this y-coordinate into C
47687 POP AF Restore AF (A = menu hand cursor's y-coordinate, in pixels)
47688 INC A Increase y-coordinate (pixels) by two...
47689 INC A ...
47690 LD (23479),A Store new y-coordinate (in pixels)
47693 PUSH BC Store BC (C = y-coordinate, in characters and before move, of menu hand cursor's finger)
47694 CALL 64361 Scroll a region of the display file down two pixel rows without wrapping...
47697 CALL 64361 ...
47700 JP 47635 Jump to 47635 (update menu highlighting as appropriate then jump to menu input handling routine)
Prev: 47603 Up: Map Next: 47703