8D8F: Drives transitions
transition |
8D8F |
LD A,($A231) |
|
8D92 |
AND A |
|
8D93 |
RET Z |
|
8D94 |
DEC A |
|
8D95 |
JP Z,draw_mugshots |
|
8D98 |
DEC A |
|
8D99 |
JP Z,sub_8e42 |
|
8D9C |
DEC A |
|
8D9D |
JP Z,fill_attributes |
|
8DA0 |
LD A,$00 |
|
8DA2 |
DEC A |
|
8DA3 |
LD ($8DA1),A |
|
8DA6 |
JR NZ,transition_0 |
|
8DA8 |
LD ($A231),A |
|
8DAB |
JR transition_1 |
transition_0 |
8DAD |
LD HL,($8DBB) |
|
8DB0 |
LD DE,$0008 |
|
8DB3 |
ADD HL,DE |
|
8DB4 |
LD ($8DBB),HL |
transition_1 |
8DB7 |
LD H,$FF |
|
8DB9 |
EXX |
|
8DBA |
LD HL,$0000 |
|
8DBD |
LD B,$08 |
transition_loop |
8DBF |
LD A,(HL) |
|
8DC0 |
EXX |
|
8DC1 |
LD E,A |
|
8DC2 |
LD D,H |
|
8DC3 |
LD L,$FE |
|
8DC5 |
CALL fade_chunk |
|
8DC8 |
LD L,$FE |
|
8DCA |
LD A,H |
|
8DCB |
SUB $08 |
|
8DCD |
LD H,A |
|
8DCE |
CALL fade_chunk |
|
8DD1 |
DEC D |
|
8DD2 |
LD H,D |
|
8DD3 |
EXX |
|
8DD4 |
INC HL |
|
8DD5 |
DJNZ transition_loop |
|
8DD7 |
RET |
fade_chunk |
8DD8 |
LD C,$08 |
fade_row_loop |
8DDA |
LD B,$06 |
fade_column_loop |
8DDC |
LD A,(HL) |
|
8DDD |
OR E |
|
8DDE |
LD (HL),A |
|
8DDF |
DEC L |
|
8DE0 |
LD A,(HL) |
|
8DE1 |
OR E |
|
8DE2 |
LD (HL),A |
|
8DE3 |
DEC L |
|
8DE4 |
LD A,(HL) |
|
8DE5 |
OR E |
|
8DE6 |
LD (HL),A |
|
8DE7 |
DEC L |
|
8DE8 |
LD A,(HL) |
|
8DE9 |
OR E |
|
8DEA |
LD (HL),A |
|
8DEB |
DEC L |
|
8DEC |
LD A,(HL) |
|
8DED |
OR E |
|
8DEE |
LD (HL),A |
|
8DEF |
DEC L |
|
8DF0 |
DJNZ fade_column_loop |
|
8DF2 |
DEC L |
|
8DF3 |
DEC L |
|
8DF4 |
DEC C |
|
8DF5 |
JP NZ,fade_row_loop |
|
8DF8 |
RET |