Prev: BDC3 Up: Map Next: BEE1
BE08: Routine at BE08
Input
Output
StartNextLife BE08 LD A,$4E
BE0A CALL Bitmap16Draw
BE0D DEC H
BE0E DEC H
BE0F LD A,H
BE10 CP $30
BE12 JR C,StartNextLife_0
BE14 LD (BitmapX),HL
BE17 LD A,$4D
BE19 CALL Bitmap16Draw
BE1C LD A,L
BE1D ADD A,$10
BE1F LD (BitmapX),A
BE22 LD A,$4E
BE24 CALL Bitmap16Draw
BE27 JR $BDF2
This entry point is used by the routine at Update_RollRock.
StartNextLife_0 BE29 XOR A
BE2A LD (MilkLevel),A
BE2D CALL Milk_DrawFull
BE30 LD HL,WallyLives
BE33 DEC (HL)
BE34 LD A,(HL)
BE35 ADD A,A
BE36 ADD A,A
BE37 ADD A,A
BE38 ADD A,A
BE39 LD (BitmapX),A
BE3C LD A,$10
BE3E LD (BitmapY),A
BE41 LD A,$4C
BE43 CALL Bitmap16Draw
BE46 LD A,(WallyLives)
BE49 OR A
BE4A JP Z,Screen_Losr
BE4D LD A,(Wally_RoomNo)
BE50 LD E,A
BE51 LD D,$00
BE53 LD HL,_c047
BE56 ADD HL,DE
BE57 LD A,(HL)
BE58 LD HL,$C06D
BE5B ADD HL,DE
BE5C LD L,(HL)
BE5D LD H,A
BE5E LD (BitmapX),HL
BE61 LD A,$9F
BE63 CALL Bitmap16Draw
BE66 LD A,H
BE67 ADD A,$10
BE69 LD (BitmapY),A
BE6C LD A,$9F
BE6E CALL Bitmap16Draw
BE71 CALL Pause_Short
BE74 LD D,$9F
BE76 LD B,$05
StartNextLife_1 BE78 LD (BitmapX),HL
BE7B LD A,D
BE7C CALL Bitmap16Draw
BE7F LD A,H
BE80 ADD A,$10
BE82 LD (BitmapY),A
BE85 LD A,D
BE86 CALL Bitmap16Draw
BE89 INC D
BE8A LD (BitmapX),HL
BE8D LD A,D
BE8E CALL Bitmap16Draw
BE91 LD A,H
BE92 ADD A,$10
BE94 LD (BitmapY),A
BE97 LD A,D
BE98 CALL Bitmap16Draw
BE9B PUSH HL
BE9C PUSH DE
BE9D PUSH BC
BE9E CALL Room_EventCaller
BEA1 CALL Pause_Short
BEA4 CALL Room_EventCaller
BEA7 CALL Pause_Short
BEAA POP BC
BEAB POP DE
BEAC POP HL
BEAD DJNZ StartNextLife_1
BEAF LD (Wally_X),HL
BEB2 LD (BitmapX),HL
BEB5 LD A,D
BEB6 CALL Bitmap16Draw
BEB9 LD A,H
BEBA ADD A,$10
BEBC LD (BitmapY),A
BEBF LD A,D
BEC0 CALL Bitmap16Draw
BEC3 LD SP,$0000
BEC6 XOR A
BEC7 LD (DeathFlag),A
BECA CALL Wally_Reset
BECD CALL Wally_Draw
BED0 LD A,(Wally_RoomNo)
BED3 CP $1E
BED5 JP C,GameLoop
BED8 CALL $F300
BEDB CALL $F336
BEDE JP Invaders_Loop
Prev: BDC3 Up: Map Next: BEE1