Prev: AB5E Up: Map Next: AB8B
AB73: Action: Write Saved Byte
Writes the second operand through the state-byte pointer selected from Table_SavedStateAddresses.
When the condition succeeded, write the second operand through the address selected from Table_SavedStateAddresses.
Action_WriteSavedByte AB73 JP NZ,Handler_RunScript_9 Leave the saved bytes alone.
AB76 LD L,(IX+$01) The first operand selects a saved byte.
AB79 LD H,$00
AB7B LD A,(IX+$02) The second operand is the new value.
AB7E ADD HL,HL Look up its address in Table_SavedStateAddresses.
AB7F LD DE,$BAF9
AB82 ADD HL,DE
AB83 LD E,(HL) That address.
AB84 INC HL
AB85 LD D,(HL)
AB86 EX DE,HL
AB87 LD (HL),A Write the new value there.
AB88 JP Handler_RunScript_9 Resume the script.
Prev: AB5E Up: Map Next: AB8B