![]() |
Routines |
| Prev: B2B6 | Up: Map | Next: B2EB |
|
Used by the routine at HandleFatBottomBlock.
Saves the position of the object in SavedPosition.
|
||||||||
|
Copy x, y and z to SavedPosition.
|
||||||||
| SavePosition | B2D9 | LD HL,$5B1B | Point HL at SavedPosition. | |||||
| B2DC | LD A,(IX+$01) | Fetch the x position. | ||||||
| B2DF | LD (HL),A | Store it. | ||||||
| B2E0 | INC HL | Move on. | ||||||
| B2E1 | LD A,(IX+$02) | Fetch the y position. | ||||||
| B2E4 | LD (HL),A | Store it. | ||||||
| B2E5 | INC HL | Move on. | ||||||
| B2E6 | LD A,(IX+$03) | Fetch the z position. | ||||||
| B2E9 | LD (HL),A | Store it. | ||||||
| B2EA | RET | Return. | ||||||
| Prev: B2B6 | Up: Map | Next: B2EB |