Prev: 9F2D Up: Map Next: 9F76
9F4A: Run the routine at HL with the first and second objects swapped
Used by the routines at DO_FILL, DO_THROW_AT and DO_TIE.
Both the numbers in TARGET to INSTRUMENT and the records in TARGET_RECORD to INSTRUMENT_RECORD, all put back afterwards.
Input
HL The routine
SWAPPED_OBJECTS 9F4A LD DE,(TARGET_RECORD)
9F4E LD IY,(INSTRUMENT_RECORD)
9F52 LD (TARGET_RECORD),IY
9F56 LD (INSTRUMENT_RECORD),DE
9F5A LD BC,(TARGET)
9F5E LD A,B
9F5F LD (TARGET),A
9F62 LD A,C
9F63 LD (INSTRUMENT),A
9F66 CALL RUN_ROUTINE
9F69 LD (TARGET),BC
9F6D LD (TARGET_RECORD),DE
9F71 LD (INSTRUMENT_RECORD),IY
9F75 RET
Prev: 9F2D Up: Map Next: 9F76