Prev: 42772 Up: Map Next: 42868
42810: Routine at A73A
Used by the routine at 42129.
42810 LD DE,(39621) DE=*39621.
42814 LD HL,30720 HL=30720.
42817 LD B,5 B=5.
42819 PUSH BC Stash BC, HL and DE on the stack.
42820 PUSH HL
42821 PUSH DE
42822 LD A,D A=D.
42823 CP 0 Jump to 42834 if A is less than 0.
42825 JR C,42834
42827 CP 24 Jump to 42834 if A is greater than or equal to 24.
42829 JR NC,42834
42831 CALL 42845 Call 42845.
42834 POP DE Restore DE and HL from the stack.
42835 POP HL
42836 LD BC,24 HL+=0024.
42839 ADD HL,BC
42840 INC D Increment D by one.
42841 POP BC Restore BC from the stack.
42842 DJNZ 42819 Decrease counter by one and loop back to 42819 until counter is zero.
42844 RET Return.
42845 PUSH HL Stash HL on the stack.
On return from CalculateScreenBuffer HL will contain the screen buffer destination.
42846 CALL CalculateScreenBuffer Call CalculateScreenBuffer.
42849 EX DE,HL Exchange the DE and HL registers.
42850 POP HL Restore HL from the stack.
42851 DEC E Decrease E by one.
42852 LD B,8 B=8.
42854 PUSH BC Stash BC and DE on the stack.
42855 PUSH DE
42856 LDI LDI.
42858 LDI LDI.
42860 LDI LDI.
42862 POP DE Restore DE from the stack.
42863 INC D Increment D by one.
42864 POP BC Restore BC from the stack.
42865 DJNZ 42854 Decrease counter by one and loop back to 42854 until counter is zero.
42867 RET Return.
Prev: 42772 Up: Map Next: 42868