Prev: BCB7 Up: Map Next: BD48
BD0D: Routine at BD0D
Used by the routine at StartGame.
BD0D LD IX,$C2D4 IX=C2D4.
BD11 LD B,$02 B=02 (counter).
BD13 PUSH BC Stash BC on the stack.
BD14 PUSH IX Stash IX on the stack.
BD16 CALL $BD24 Call BD24.
BD19 POP IX Restore IX from the stack.
BD1B LD BC,$000D BC=000D.
BD1E ADD IX,BC IX+=BC.
BD20 POP BC Restore BC from the stack.
BD21 DJNZ $BD13 Decrease counter by one and loop back to BD13 until counter is zero.
BD23 RET Return.
BD24 CALL $C023 Call C023.
This entry point is used by the routine at B591.
BD27 LD A,(IX+$00) A=*IX+00.
BD2A CP $17 Return if A is higher than 17.
BD2C RET NC
BD2D CALL $C13E Call C13E.
BD30 LD DE,$0040 DE=0040.
BD33 LD B,(IX+$03) B=*IX+03.
BD36 BIT 0,(IX+$07) Jump to BD42 if bit 0 of *IX+07 is set.
BD3A JR NZ,$BD42
BD3C RES 6,(HL) Reset bit 6 of *HL.
BD3E ADD HL,DE HL+=DE.
BD3F DJNZ $BD3C Decrease counter by one and loop back to BD3C until counter is zero.
BD41 RET Return.
BD42 SET 6,(HL) Set bit 6 of *HL.
BD44 ADD HL,DE HL+=DE.
BD45 DJNZ $BD42 Decrease counter by one and loop back to BD42 until counter is zero.
BD47 RET Return.
Prev: BCB7 Up: Map Next: BD48