![]() |
Routines |
| Prev: 45785 | Up: Map | Next: 45823 |
|
Used by the routine at HandleFatBottomBlock.
Compares the position of the object with the one saved by SavePosition.
|
||||||||||||
|
Compare x, y and z with SavedPosition.
|
||||||||||||
| ComparePosition | 45803 | LD HL,23323 | Point HL at SavedPosition. | |||||||||
| 45806 | LD A,(IX+1) | Fetch the x position. | ||||||||||
| 45809 | CP (HL) | Compare it with the saved x position. | ||||||||||
| 45810 | RET NZ | Return if it is different. | ||||||||||
| 45811 | INC HL | Move on. | ||||||||||
| 45812 | LD A,(IX+2) | Fetch the y position. | ||||||||||
| 45815 | CP (HL) | Compare it with the saved y position. | ||||||||||
| 45816 | RET NZ | Return if it is different. | ||||||||||
| 45817 | INC HL | Move on. | ||||||||||
| 45818 | LD A,(IX+3) | Fetch the z position. | ||||||||||
| 45821 | CP (HL) | Compare it with the saved z position. | ||||||||||
| 45822 | RET | Return. | ||||||||||
| Prev: 45785 | Up: Map | Next: 45823 |