![]() |
Routines |
| Prev: 46014 | Up: Map | Next: 46102 |
|
Used by the routine at StartGame.
|
||||
| Handler_StreetObjects | 46064 | LD IX,49811 | IX=Table_StreetObjects. | |
| 46068 | LD B,7 | Set a counter in B for the number of street objects (7). | ||
| StreetObjects_Loop | 46070 | PUSH BC | Stash the street objects counter on the stack. | |
| 46071 | LD A,(IX+0) | A=*IX+0. | ||
| 46074 | CP (IX+11) | Compare A with *IX+11. | ||
| 46077 | CALL C,StreetObjects_Action | Call StreetObjects_Action is lower. | ||
| 46080 | LD BC,13 | Add 0013 to the street objects pointer to move to the next object. | ||
| 46083 | ADD IX,BC | |||
| 46085 | POP BC | Restore the street objects counter from the stack. | ||
| 46086 | DJNZ StreetObjects_Loop | Decrease the street objects counter by one and loop back to StreetObjects_Loop until all of the street objects have been processed. | ||
| 46088 | RET | Return. | ||
|
Time for the street object to update.
|
||||
| StreetObjects_Action | 46089 | PUSH IX | Stash the street objects pointer on the stack. | |
| 46091 | CALL 45806 | Call 45806. | ||
| 46094 | POP IX | Restore the street objects pointer from the stack. | ||
| 46096 | CALL 45858 | Call 45858. | ||
| 46099 | LD A,23 | A=23. | ||
| 46101 | RET | Return. | ||
| Prev: 46014 | Up: Map | Next: 46102 |