Prev: AF5D Up: Map Next: B140
B0DC: Flash the screen
Used by the routines at AA65 and AF5D.
B0DC PUSH BC
B0DD RL C
B0DF LD A,($A42D)
B0E2 RRCA
B0E3 RRCA
B0E4 RRCA
B0E5 AND $1F
B0E7 LD E,A
B0E8 LD D,$00
B0EA LD HL,$5080
B0ED ADD HL,DE
B0EE LD A,$20
B0F0 SUB E
B0F1 CP $11
B0F3 JR C,$B0F7
B0F5 LD A,$11
B0F7 LD D,A
B0F8 LD E,L
B0F9 LD A,($A421)
B0FC LD B,D
B0FD LD L,E
B0FE AND A
B0FF BIT 0,C
B101 JR Z,$B10B
B103 BIT 0,H
B105 JR NZ,$B10B
B107 XOR $10
B109 OUT ($FE),A
B10B RR (HL)
B10D INC L
B10E DJNZ $B10B
B110 INC H
B111 BIT 3,H
B113 JR Z,$B0FC
B115 POP BC
B116 LD HL,$A42D
B119 LD A,(HL)
B11A INC A
B11B LD (HL),A
B11C LD HL,$A42B
B11F CP (HL)
B120 RET C
B121 LD (HL),A
B122 CP $FF
B124 JR NZ,$B12B
B126 XOR A
B127 POP HL
B128 LD A,$80
B12A RET
B12B INC A
B12C AND $07
B12E RET NZ
B12F LD A,($A436)
B132 SRL A
B134 SRL A
B136 LD HL,$A42F
B139 ADD A,(HL)
B13A JR NC,$B13E
B13C LD A,$FF
B13E LD (HL),A
B13F RET
Prev: AF5D Up: Map Next: B140