Prev: B218 Up: Map Next: B339
B2F9: Routine at B2F9
Used by the routine at LevelNew.
B2F9 LD A,($60B0) A=60B0.
B2FC BIT 3,A
B2FE JR NZ,$B305
B300 OR %10000000 Set bit 7.
B302 LD ($60B0),A
B305 LD A,($60C8) A=60C8.
B308 BIT 3,A
B30A JR NZ,$B311
B30C OR %10000000 Set bit 7.
B30E LD ($60C8),A
B311 LD A,($60E0) A=60E0.
B314 AND %11111100 Keep only bits 2-7.
B316 LD ($60E0),A
B319 LD A,($61A0)
B31C BIT 2,A
B31E JR NZ,$B32B
B320 LD A,($619C)
B323 CP $AF
B325 LD A,$00
B327 JR Z,$B32B
B329 OR %00000010 Set bit 1.
B32B LD ($61A0),A
B32E LD A,($60F0)
B331 AND A
B332 RET Z
B333 LD A,$2F
B335 LD ($60F0),A
B338 RET Return.
Prev: B218 Up: Map Next: B339