Prev: 54214 Up: Map Next: 54256
54242: Clear Remaining Objects
Used by the routines at RetrieveRoom and MakeRoomObjects.
Clears the objects in the objects table from a given place to the end of the table.
Input
DE Address of the first object to clear
ClearRemainingObjects 54242 LD HL,24840 Point HL at the end of the objects table, Font.
54245 AND A Compare it with the address.
54246 SBC HL,DE
54248 RET Z Return if the end has been reached.
54249 LD B,32 Set the number of bytes to the size of an object.
54251 CALL ClearBytes Clear the object.
54254 JR ClearRemainingObjects Jump to ClearRemainingObjects.
View the equivalent code in;
Prev: 54214 Up: Map Next: 54256