![]() |
Routines |
| Prev: B3BE | Up: Map | Next: B416 |
|
Used by the routine at StartGame.
|
||||
| Handler_StreetObjects | B3F0 | LD IX,$C293 | IX=Table_StreetObjects. | |
| B3F4 | LD B,$07 | Set a counter in B for the number of street objects (07). | ||
| StreetObjects_Loop | B3F6 | PUSH BC | Stash the street objects counter on the stack. | |
| B3F7 | LD A,(IX+$00) | A=*IX+00. | ||
| B3FA | CP (IX+$0B) | Compare A with *IX+0B. | ||
| B3FD | CALL C,StreetObjects_Action | Call StreetObjects_Action is lower. | ||
| B400 | LD BC,$000D | Add 000D to the street objects pointer to move to the next object. | ||
| B403 | ADD IX,BC | |||
| B405 | POP BC | Restore the street objects counter from the stack. | ||
| B406 | 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. | ||
| B408 | RET | Return. | ||
|
Time for the street object to update.
|
||||
| StreetObjects_Action | B409 | PUSH IX | Stash the street objects pointer on the stack. | |
| B40B | CALL $B2EE | Call B2EE. | ||
| B40E | POP IX | Restore the street objects pointer from the stack. | ||
| B410 | CALL $B322 | Call B322. | ||
| B413 | LD A,$17 | A=17. | ||
| B415 | RET | Return. | ||
| Prev: B3BE | Up: Map | Next: B416 |