Prev: BADD Up: Map Next: BB73
BB36: Routine at BB36
Used by the routine at StartGame.
BB36 LD IX,$C2D4 IX=C2D4.
BB3A LD DE,$000D DE=000D.
BB3D LD B,$02 B=02 (counter).
BB3F LD A,$1F A=1F.
BB41 AND (IX+$05) Merge the bits of A with *IX+05.
BB44 CP $0A Jump to BB4E if A is 0A.
BB46 JR Z,$BB4E
BB48 ADD IX,DE IX+=DE.
BB4A DJNZ $BB3F Decrease counter by one and loop back to BB3F until counter is zero.
BB4C LD A,$0B A=0B.
BB4E LD ($BAF6),A A=BAF6.
BB51 RLCA RLCA.
BB52 LD ($BB21),A A=BB21.
BB55 LD B,$02 B=02 (counter).
BB57 LD IX,$C2D4 IX=C2D4.
BB5B LD A,$1F A=1F.
BB5D AND (IX+$05) Merge the bits of A with *IX+05.
BB60 CP $15 Jump to BB6A if A is 15.
BB62 JR Z,$BB6A
BB64 ADD IX,DE IX+=DE.
BB66 DJNZ $BB5B Decrease counter by one and loop back to BB5B until counter is zero.
BB68 LD A,$14 A=14.
BB6A INC A Increment A by one.
BB6B LD ($BAFA),A A=BAFA.
BB6E RLCA RLCA.
BB6F LD ($BB25),A A=BB25.
BB72 RET Return.
Prev: BADD Up: Map Next: BB73