Prev: 59972 Up: Map Next: 60012
59986: Clear Attribute File
Clear the attribute file.
Input
A Attribute fill value
Clear_AttributeFile 59986 EXX Switch to the shadow registers.
59987 LD HL,22528 Load HL with 22528 (attribute buffer).
59990 LD D,H Copy HL to DE.
59991 LD E,L Copy HL to DE.
59992 INC DE Advance the clear-attributes destination by one.
59993 LD (HL),A Write the fill value to the first attribute cell.
59994 LD BC,639 Copy 639 attribute bytes from *HL to *DE.
59997 LDIR
59999 CALL Clear_BothDisplayBuffers Call Clear_BothDisplayBuffers to clear both display buffers.
60002 LD A,137 Load A with sound index 137.
60004 CALL Queue_Sound Call Queue_Sound to queue a sound effect.
60007 CALL Play_QueuedSound Call Play_QueuedSound to play the queued sound.
60010 EXX Switch to the shadow registers.
60011 RET Return.
Prev: 59972 Up: Map Next: 60012