Prev: BC5A Up: Map Next: BC81
BC64: Script Routine: (33) Thing Upstairs action
Blank the attribute file for the Thing Upstairs scene and reset slot 20.
ScriptRoutine_ThingUpstairsClearScreen BC64 LD A,$36 Load A with 36.
BC66 CALL Clear_AttributeFile Call Clear_AttributeFile to clear the attribute file.
BC69 LD HL,$BDC3 Point HL at GraphicLayout_Ghost.
BC6C LD ($BBF4),HL Store HL in Thing Upstairs storage at BBF4.
BC6F XOR A Clear complex entity slot 20's type (empty the slot).
BC70 LD ($9001),A Store A in complex entity slot 20's type (StateData_Complex_20).
BC73 LD HL,$BC5A Point HL at Data_ThingUpstairsEntityTemplate.
BC76 PUSH DE Stash DE on the stack.
BC77 LD DE,$9001 Point DE at complex entity slot 20 (StateData_Complex_20).
BC7A LD BC,$000A Load BC with 000A as a short table length.
BC7D LDIR Copy the block pointed to by HL into the destination at DE.
BC7F POP DE Restore DE from the stack.
BC80 RET Return.
Prev: BC5A Up: Map Next: BC81