Prev: C3BB Up: Map Next: C3EA
C3C0: Routine at C3C0
Used by the routine at Prep_Display_Phase.
C3C0 CALL Init_Duel Call Init_Duel.
C3C3 LD A,($C421) Grab C421.
C3C6 JR NC,Rebuild
C3C8 INC A
Rebuild C3C9 LD B,$20 Interrupt driven HALT loop ($20 cycles).
Rebuild_Halt_Loop C3CB HALT
C3CC DJNZ Rebuild_Halt_Loop
C3CE LD E,A
C3CF LD HL,($5B86) Is Lives more than 06?
C3D2 LD A,(HL)
C3D3 CP $06
C3D5 JR C,$C3D8 If so, jump to C3D8.
C3D7 NOP
C3D8 AND A If Lives is zero then return.
C3D9 LD A,E
C3DA RET NZ
C3DB SCF Set the carry flag and return.
C3DC RET
Kicks off the duelling bonus round.
Init_Duel C3DD PUSH BC Stashes BC and DE.
C3DE PUSH DE
C3DF LD DE,$5B80 Copies 1B of data from HL to Print_TwoToneText_Alias.
C3E2 LD BC,$001B
C3E5 LDIR
C3E7 JP Duel_Prep Jump to Duel_Prep.
Prev: C3BB Up: Map Next: C3EA