Prev: 42254 Up: Map Next: 42326
42290: Routine at A532
Used by the routine at 42129.
42290 LD DE,(39621) DE=*39621.
42294 DEC E Decrease E by one.
42295 LD HL,30720 HL=30720.
42298 LD B,5 B=5.
42300 PUSH BC Stash BC, HL and DE on the stack.
42301 PUSH HL
42302 PUSH DE
42303 LD A,D A=D.
42304 CP 0 Jump to 42315 if A is less than 0.
42306 JR C,42315
42308 CP 24 Jump to 42315 if A is greater than or equal to 24.
42310 JR NC,42315
42312 CALL 42360 Call 42360.
42315 POP DE Restore DE and HL from the stack.
42316 POP HL
42317 LD BC,24 HL+=0024.
42320 ADD HL,BC
42321 INC D Increment D by one.
42322 POP BC Restore BC from the stack.
42323 DJNZ 42300 Decrease counter by one and loop back to 42300 until counter is zero.
42325 RET Return.
Prev: 42254 Up: Map Next: 42326