Prev: 52391 Up: Map Next: 52446
52432: 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 52432 LD HL,25224 Point HL at UnusedAfterObjects.
52435 AND A Return if HL is equal to DE.
52436 SBC HL,DE
52438 RET Z
52439 LD B,32 Set B to 32.
52441 CALL ClearBytes Call ClearBytes.
52444 JR ClearRemainingObjects Jump to ClearRemainingObjects.
View the equivalent code in;
Prev: 52391 Up: Map Next: 52446