![]() |
Routines |
| Prev: 53724 | Up: Map | Next: 53788 |
|
Used by the routines at CheckObjectVisibility, FetchNextObjectWithID, ProcessObjectEntry, ReadCharacterRoom, FindObjectByField and CountObjectsInLocation.
Steps to the next object in the list and reports whether the list has ended.
|
||||||||||||||||
| FetchNextObject | 53766 | EXX | Switch to the shadow registers. | |||||||||||||
| 53767 | LD DE,3 | Step to the next object record. | ||||||||||||||
| 53770 | ADD IX,DE | |||||||||||||||
| 53772 | LD D,(IX+2) | Read the next object's data pointer. | ||||||||||||||
| 53775 | LD E,(IX+1) | |||||||||||||||
| 53778 | PUSH DE | |||||||||||||||
| 53779 | POP IY | |||||||||||||||
| 53781 | LD A,(IX+0) | Stop at the end of the object table (255). | ||||||||||||||
| 53784 | CP 255 | |||||||||||||||
| 53786 | EXX | Switch back to the normal registers. | ||||||||||||||
| 53787 | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: 53724 | Up: Map | Next: 53788 |