Routines |
Prev: CF8F | Up: Map | Next: CFCC |
CF9B | CALL $A535 | Computes into HL the address into the attribute file for the explosion position | ||
CF9E | LD DE,$0020 | Set this address to the next row | ||
CFA1 | ADD HL,DE | |||
CFA2 | LD ($A093),HL | Save at A093 the address into the attribute file | ||
CFA5 | LD DE,$5800 | Set DE the base address for the attribute file | ||
CFA8 | AND A | Reset carry flag | ||
CFA9 | SBC HL,DE | Computes the equivalent address of the attribute file into the attribute buffer | ||
CFAB | LD DE,$E4FF | |||
CFAE | ADD HL,DE | |||
CFAF | EX DE,HL | Point A095 to the address into the attribute buffer | ||
CFB0 | LD ($A095),DE | |||
CFB4 | LD A,R | Set into DE a pseudo-random number from 0 to 7 | ||
CFB6 | AND $07 | |||
CFB8 | LD E,A | |||
CFB9 | LD D,$00 | |||
CFBB | LD HL,$BFE7 | Set HL to the address into attribute color for explosion | ||
CFBE | ADD HL,DE | |||
CFBF | LD A,(HL) | Set C to the attribute color | ||
CFC0 | LD C,A | |||
CFC1 | LD HL,($A093) | Set HL to the address into the attribute file | ||
CFC4 | LD DE,($A095) | Set DE to the address into the attribute buffer | ||
CFC8 | CALL $CF3D | Draw attribte color for explosion | ||
CFCB | RET |
Prev: CF8F | Up: Map | Next: CFCC |