Prev: EA44 Up: Map Next: EA6C
EA52: Clear Attribute File
Clear the attribute file.
Input
A Attribute fill value
Clear_AttributeFile EA52 EXX Switch to the shadow registers.
EA53 LD HL,$5800 Load HL with 5800 (attribute buffer).
EA56 LD D,H Copy HL to DE.
EA57 LD E,L Copy HL to DE.
EA58 INC DE Advance the clear-attributes destination by one.
EA59 LD (HL),A Write the fill value to the first attribute cell.
EA5A LD BC,$027F Copy 027F attribute bytes from *HL to *DE.
EA5D LDIR
EA5F CALL Clear_BothDisplayBuffers Call Clear_BothDisplayBuffers to clear both display buffers.
EA62 LD A,$89 Load A with sound index 89.
EA64 CALL Queue_Sound Call Queue_Sound to queue a sound effect.
EA67 CALL Play_QueuedSound Call Play_QueuedSound to play the queued sound.
EA6A EXX Switch to the shadow registers.
EA6B RET Return.
Prev: EA44 Up: Map Next: EA6C