Prev: CCA7 Up: Map Next: CCDE
CCD0: 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 CCD0 LD HL,$6288 Point HL at UnusedAfterObjects.
CCD3 AND A Return if HL is equal to DE.
CCD4 SBC HL,DE
CCD6 RET Z
CCD7 LD B,$20 Set B to 20.
CCD9 CALL ClearBytes Call ClearBytes.
CCDC JR ClearRemainingObjects Jump to ClearRemainingObjects.
View the equivalent code in;
Prev: CCA7 Up: Map Next: CCDE