![]() |
Routines |
| Prev: 9ED7 | Up: Map | Next: 9F38 |
|
Used by the routine at AdvanceGardenerAfterMove.
Stores the character's new state, marks the object moved, and writes the location offset back into the timetable.
|
||||||||||||||||
| UpdateCharacterStateAndLocation | 9F1E | LD (HL),A | Store the new state, point IX at the current character at CurrentCharacterData, and write B at offset 0F. | |||||||||||||
| 9F1F | LD IX,($A017) | |||||||||||||||
| 9F23 | LD (IX+$0F),B | |||||||||||||||
| 9F26 | LD (IX+$01),$FF | Mark the object as moved. | ||||||||||||||
|
Update character's location in timetable.
|
||||||||||||||||
| 9F2A | LD L,(IY+$06) | Add the offset in the source to the word at offset 06 of this record. | ||||||||||||||
| 9F2D | LD H,(IY+$07) | |||||||||||||||
| 9F30 | ADD HL,DE | |||||||||||||||
| 9F31 | LD (IY+$06),L | Store the low byte of the schedule time. | ||||||||||||||
| 9F34 | LD (IY+$07),H | Store the high byte of the schedule time. | ||||||||||||||
| 9F37 | RET | Return. | ||||||||||||||
| Prev: 9ED7 | Up: Map | Next: 9F38 |