![]() |
Routines |
| Prev: D1DC | Up: Map | Next: D21C |
|
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 | D206 | EXX | Switch to the shadow registers. | |||||||||||||
| D207 | LD DE,$0003 | Step to the next object record. | ||||||||||||||
| D20A | ADD IX,DE | |||||||||||||||
| D20C | LD D,(IX+$02) | Read the next object's data pointer. | ||||||||||||||
| D20F | LD E,(IX+$01) | |||||||||||||||
| D212 | PUSH DE | |||||||||||||||
| D213 | POP IY | |||||||||||||||
| D215 | LD A,(IX+$00) | Stop at the end of the object table (FF). | ||||||||||||||
| D218 | CP $FF | |||||||||||||||
| D21A | EXX | Switch back to the normal registers. | ||||||||||||||
| D21B | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: D1DC | Up: Map | Next: D21C |