80D0: Updates bitmaps behind hero and sidhe.
BgUpdate |
80D0 |
LD HL,HeroBackground |
|
80D3 |
LD A,(Hero_AnimCount) |
|
80D6 |
AND A |
|
80D7 |
JP Z,BgUpdate_7 |
|
80DA |
CP $14 |
|
80DC |
JR NZ,BgUpdate_5 |
|
80DE |
LD DE,$F78C |
|
80E1 |
LD A,(Hero_AttackDir) |
|
80E4 |
CP $02 |
|
80E6 |
JR Z,BgUpdate_0 |
|
80E8 |
INC DE |
BgUpdate_0 |
80E9 |
LD A,$18 |
BgUpdate_1 |
80EB |
LDI |
|
80ED |
LDI |
|
80EF |
LDI |
|
80F1 |
LDI |
|
80F3 |
LDI |
|
80F5 |
EX DE,HL |
|
80F6 |
LD BC,$001D |
|
80F9 |
ADD HL,BC |
|
80FA |
EX DE,HL |
|
80FB |
DEC A |
|
80FC |
JR NZ,BgUpdate_1 |
|
80FE |
LD A,(Hero_AttackDir) |
|
8101 |
CP $02 |
|
8103 |
JR Z,BgUpdate_2 |
|
8105 |
DEC DE |
|
8106 |
JR BgUpdate_3 |
BgUpdate_2 |
8108 |
INC DE |
BgUpdate_3 |
8109 |
LD A,$18 |
BgUpdate_4 |
810B |
LDI |
|
810D |
LDI |
|
810F |
LDI |
|
8111 |
LDI |
|
8113 |
LDI |
|
8115 |
LD BC,$001D |
|
8118 |
EX DE,HL |
|
8119 |
ADD HL,BC |
|
811A |
EX DE,HL |
|
811B |
DEC A |
|
811C |
JR NZ,BgUpdate_4 |
|
811E |
JR BgUpdate_7 |
BgUpdate_5 |
8120 |
LD DE,$F67D |
|
8123 |
LD A,$38 |
BgUpdate_6 |
8125 |
LDI |
|
8127 |
LDI |
|
8129 |
LDI |
|
812B |
LDI |
|
812D |
LD BC,$001E |
|
8130 |
EX DE,HL |
|
8131 |
ADD HL,BC |
|
8132 |
EX DE,HL |
|
8133 |
DEC A |
|
8134 |
JR NZ,BgUpdate_6 |
BgUpdate_7 |
8136 |
CALL Sidhe_BlitBg |
|
8139 |
JP Vector_HeroInit_0 |