Prev: 37419 Up: Map Next: 37483
37425: Draw Frame
Used by the routines at 37483 and 37880.
DrawFrame 37425 LD HL,0 Write 0000 to *36166.
37428 LD (36166),HL
37431 CALL 38829 Call 38829.
37434 CALL 38844 Call 38844.
37437 LD HL,22496 HL=22496 (screen buffer location).
37440 LD DE,22527 DE=22527 (screen buffer location).
37443 LD B,192 B=192.
DrawFrame_0 37445 LD (HL),192 Write 192 to *HL.
37447 LD A,3 Write 3 to *DE.
37449 LD (DE),A
37450 CALL PrintLine_6 Call PrintLine_6.
37453 EX DE,HL Exchange the DE register with the shadow HL register.
37454 CALL PrintLine_6 Call PrintLine_6.
37457 EX DE,HL Restore the DE register from the shadow HL register.
37458 DJNZ DrawFrame_0 Decrease counter by one and loop back to DrawFrame_0 until counter is zero.
37460 LD HL,22240 HL=22240 (screen buffer location).
37463 LD DE,16384 DE=16384.
37466 LD B,32 B=32.
37468 LD A,255 A=255.
DrawFrame_1 37470 LD (HL),A Write A to *HL.
37471 INC H Increment H by one.
37472 LD (HL),A Write A to *HL.
37473 DEC H Decrease H by one.
37474 LD (DE),A Write A to *DE.
37475 INC D Increment D by one.
37476 LD (DE),A Write A to *DE.
37477 DEC D Decrease D by one.
37478 INC L Increment L by one.
37479 INC E Increment E by one.
37480 DJNZ DrawFrame_1 Decrease counter by one and loop back to DrawFrame_1 until counter is zero.
37482 RET Return.
Prev: 37419 Up: Map Next: 37483