B648: Draw the hero car's smoke
draw_smoke |
B648 |
RLCA |
|
B649 |
LD C,A |
|
B64A |
RLCA |
|
B64B |
ADD A,C |
|
B64C |
LD C,A |
|
B64D |
LD B,$00 |
|
B64F |
LD HL,$CF9A |
|
B652 |
ADD HL,BC |
|
B653 |
LD A,($B064) |
|
B656 |
AND A |
|
B657 |
RET NZ |
|
B658 |
LD C,(HL) |
|
B659 |
INC HL |
|
B65A |
LD B,(HL) |
|
B65B |
INC HL |
|
B65C |
LD D,(HL) |
|
B65D |
INC HL |
|
B65E |
LD E,(HL) |
|
B65F |
INC HL |
|
B660 |
LD A,(HL) |
|
B661 |
INC HL |
|
B662 |
LD H,(HL) |
|
B663 |
LD L,A |
|
B664 |
PUSH BC |
|
B665 |
EXX |
|
B666 |
EX AF,AF' |
|
B667 |
POP BC |
|
B668 |
LD B,A |
|
B669 |
LD E,C |
|
B66A |
DEC C |
|
B66B |
AND A |
|
B66C |
JR NZ,draw_smoke_0 |
|
B66E |
LD C,A |
|
B66F |
EXX |
|
B670 |
LD A,E |
|
B671 |
JR draw_smoke_1 |
draw_smoke_0 |
B673 |
EXX |
|
B674 |
LD A,D |
draw_smoke_1 |
B675 |
ADD A,$7F |
|
B677 |
LD E,A |
|
B678 |
LD D,$77 |
|
B67A |
JR sub_b67c_3 |