Prev: 36441 Up: Map Next: 36578
36442: Draw User Interface
Used by the routine at PlayGame.
user-interface
DrawUserInterface 36442 LD HL,22048 HL=22048 (screen buffer location).
36445 LD E,2 E=2.
DrawUserInterface_0 36447 LD D,2 D=2.
DrawUserInterface_1 36449 PUSH HL Stash HL on the stack.
36450 LD C,3 C=3.
DrawUserInterface_2 36452 LD (HL),3 Write 3 to *HL.
36454 INC HL Increment HL by one.
36455 LD B,30 B=30.
DrawUserInterface_3 36457 LD (HL),255 Write 255 to *HL.
36459 INC HL Increment HL by one.
36460 DJNZ DrawUserInterface_3 Decrease counter by one and loop back to DrawUserInterface_3 until counter is zero.
36462 LD (HL),192 Write 192 to *HL.
36464 PUSH DE Stash DE on the stack.
36465 LD DE,33 HL+=0033.
36468 ADD HL,DE
36469 POP DE Restore DE from the stack.
36470 DEC C Decrease C by one.
36471 JR NZ,DrawUserInterface_2 Jump to DrawUserInterface_2 until C is zero.
36473 POP HL Restore HL from the stack.
36474 INC H Increment H by one.
36475 DEC D Decrease D by one.
36476 JR NZ,DrawUserInterface_1 Jump to DrawUserInterface_1 until D is zero.
36478 PUSH DE Temporarily stash DE on the stack.
36479 LD DE,1984 HL-=1984.
36482 SBC HL,DE
36484 POP DE Restore DE from the stack.
36485 DEC E Decrease E by one.
36486 JR NZ,DrawUserInterface_0 Jump to DrawUserInterface_0 until E is zero.
36488 LD HL,20544 HL=20544 (screen buffer location).
36491 LD C,8 C=8.
DrawUserInterface_4 36493 PUSH HL Stash HL on the stack.
36494 LD B,3 B=3.
DrawUserInterface_5 36496 LD (HL),3 Write 3 to *HL.
36498 LD DE,31 HL+=0031.
36501 ADD HL,DE
36502 LD (HL),192 Write 192 to *HL.
36504 LD DE,33 HL+=0033.
36507 ADD HL,DE
36508 DJNZ DrawUserInterface_5 Decrease counter by one and loop back to DrawUserInterface_5 until counter is zero.
36510 POP HL Restore HL from the stack.
36511 INC H Increment H by one.
36512 DEC C Decrease C by one.
36513 JR NZ,DrawUserInterface_4 Jump to DrawUserInterface_4 until C is zero.
36515 LD HL,20559 HL=20559 (screen buffer location).
36518 LD C,1 C=1.
36520 CALL DrawUserInterface_9 Call DrawUserInterface_9.
36523 LD HL,20618 HL=20618 (screen buffer location).
36526 CALL DrawUserInterface_8 Call DrawUserInterface_8.
36529 LD HL,20628 HL=20628 (screen buffer location).
36532 CALL DrawUserInterface_8 Call DrawUserInterface_8.
36535 LD HL,23105 HL=23105 (attribute buffer location).
36538 LD C,3 C=3.
DrawUserInterface_6 36540 LD B,30 B=30.
DrawUserInterface_7 36542 LD (HL),120 Write INK: BLACK, PAPER: WHITE (BRIGHT) to *HL.
36544 INC HL Increment HL by one.
36545 DJNZ DrawUserInterface_7 Decrease counter by one and loop back to DrawUserInterface_7 until counter is zero.
36547 LD DE,34 HL+=0034.
36550 ADD HL,DE
36551 DEC C Decrease C by one.
36552 JR NZ,DrawUserInterface_6 Jump to DrawUserInterface_6 until C is zero.
36554 RET Return.
DrawUserInterface_8 36555 LD C,2 C=2.
DrawUserInterface_9 36557 PUSH HL Stash HL on the stack.
36558 LD B,8 B=8.
DrawUserInterface_10 36560 LD (HL),1 Write 1 to *HL.
36562 INC HL Increment HL by one.
36563 LD (HL),128 Write 128 to *HL.
36565 DEC HL Decrease HL by one.
36566 INC H Increment H by one.
36567 DJNZ DrawUserInterface_10 Decrease counter by one and loop back to DrawUserInterface_10 until counter is zero.
36569 POP HL Restore HL from the stack.
36570 LD DE,64 DE=0064.
36573 ADD HL,DE HL+=DE.
36574 DEC C Decrease C by one.
36575 JR NZ,DrawUserInterface_9 Jump to DrawUserInterface_9 until C is zero.
36577 RET Return.
Prev: 36441 Up: Map Next: 36578