Prev: 37613 Up: Map Next: 37703
37654: Print or update command summary window at bottom of screen
Used by the routines at 30222, 30602, 31370, 32035, 32194, 32655, 33036, 33312, 33593, 33663, 34914 and 35141.
The operand of the instruction at 37654 represents the index of the window being drawn. This is modified by the instructions at 36998 and 37699.
37654 LD A,0 Load A with the index of the window being drawn
37656 PUSH AF Store AF
37657 LD HL,(36488) Store current (video) memory location to start printing character...
37660 PUSH HL ...
37661 LD HL,(23493) Store x- & y-coordinates of top-left of currently drawn window...
37664 PUSH HL ...
37665 LD HL,(23494) Store y- & x-coordinates of top-right of currently drawn window...
37668 PUSH HL ...
37669 LD A,1 Draw window 1 (command summary window at bottom of screen)...
37671 CALL 36987 ...
37674 LD HL,43271 Point HL to ("COMMAND") text...
37677 CALL 36725 ...and print text
37680 LD HL,(36488) Copy current (video) memory location to start printing character into memory at 65530...
37683 LD (65530),HL ...
37686 POP HL Restore y- & x-coordinates of top-right of currently drawn window...
37687 LD (23494),HL ...
37690 POP HL Restore x- & y-coordinates of top-left of currently drawn window...
37691 LD (23493),HL ...
37694 POP HL Restore current (video) memory location to start printing character...
37695 LD (36488),HL ...
37698 POP AF Restore AF (A = index of window being drawn)...
37699 LD (37655),A ...and store at 37654
37702 RET Return
Prev: 37613 Up: Map Next: 37703