Prev: 61025 Up: Map Next: 61397
61258: Routine at EF4A
Used by the routines at Game_Loop, 54098, 55444 and Handler_MainMenu.
61258 LD DE,2000 DE=2000.
61261 DEC DE Decrease DE by one.
61262 LD A,50 A=50.
61264 DEC A Decrease A by one.
61265 JR NZ,61264 Jump to 61264 if A is not zero.
61267 LD A,D Jump to 61261 if DE is not zero.
61268 OR E
61269 JR NZ,61261
61271 LD IX,55352 IX=Bomb.
61275 SET 7,(IX+0) Set bit 7 of *IX+0.
61279 CALL Handler_PlayerInput Call Handler_PlayerInput.
61282 CP 0 Jump to 61279 if A is not equal to 0.
61284 JR NZ,61279
61286 RES 7,(IX+0) Reset bit 7 of *IX+0.
This entry point is used by the routine at Controller_GameOver.
61290 PUSH BC Stash BC on the stack.
61291 INC HL Increment HL by one.
61292 LD A,(HL) A=*HL.
61293 DEC HL Decrease HL by one.
61294 CP 255 Jump to 61312 if A is not equal to 255.
61296 JP NZ,61312
61299 INC HL Increment HL by two.
61300 INC HL
61301 LD BC,20000 BC=20000.
61304 DEC BC Decrease BC by one.
61305 LD A,B Jump to 61304 if BC is not zero.
61306 OR C
61307 JR NZ,61304
61309 JP 61375 Jump to 61375.
61312 RLCA RLCA.
61313 RLCA
61314 LD IX,61586 IX=61586.
61318 LD B,0 B=0.
61320 LD C,A C=A.
61321 ADD IX,BC IX+=BC.
61323 PUSH HL Stash HL on the stack.
61324 LD L,(IX+0) L=*IX+0.
61327 LD H,(IX+1) H=*IX+1.
61330 LD (61515),HL Write HL to *61515.
61333 LD C,(IX+2) C=*IX+2.
61336 LD B,(IX+3) B=*IX+3.
61339 POP HL Restore HL from the stack.
61340 LD A,(HL) A=*HL.
61341 INC HL Increment HL by two.
61342 INC HL
61343 PUSH HL Stash HL and BC on the stack.
61344 PUSH BC
61345 POP DE Restore DE from the stack.
61346 LD B,A B=A.
61347 LD HL,0 HL=0000.
61350 ADD HL,DE HL+=DE.
61351 DJNZ 61350 Decrease counter by one and loop back to 61350 until counter is zero.
61353 AND A Set flags.
61354 LD DE,0 DE=0000.
61357 LD BC,50 BC=0050.
61360 INC DE Increment DE by one.
61361 SBC HL,BC HL-=BC.
61363 JP P,61360 Jump to 61360 P.
61366 DEC DE Decrease DE by one.
61367 LD (61517),DE Write DE to *61517.
61371 CALL 61397 Call 61397.
61374 POP HL Restore HL and BC from the stack.
61375 POP BC
61376 LD IX,55352 IX=Bomb.
61380 SET 7,(IX+0) Set bit 7 of *IX+0.
61384 CALL Handler_PlayerInput Call Handler_PlayerInput.
61387 CP 0 Was there any player input?
61389 RES 7,(IX+0) Reset bit 7 of *IX+0.
61393 RET NZ Return there was any kind of player input.
61394 DJNZ 61290 Decrease counter by one and loop back to 61290 until counter is zero.
61396 RET Return.
Prev: 61025 Up: Map Next: 61397