Prev: BD0D Up: Map Next: BD48
BD24: Routine at BD24
Used by the routine at BD0D.
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: BD0D Up: Map Next: BD48