![]() |
Routines |
| Prev: 43889 | Up: Map | Next: 43925 |
|
Used by the routine at Update_Berk_State.
Initialise Entity Defaults walking the entity tables at StateData_SimpleEntities / StateData_Boney.
|
||||
| Initialise_Entity_Defaults | 43894 | LD IX,36725 | Point IX at the plant-pot complex entity (StateData_Complex_10). | |
| 43898 | LD DE,14 | Each entity record is 0014 bytes long, then load that length into DE. | ||
| 43901 | LD HL,41090 | Point HL at Graphic Layout Data: Entity Type 15 (GraphicLayout_PlantPot). | ||
| 43904 | LD B,3 | Load B with 3 as a loop counter. | ||
|
Stamp default type/flags/layout onto each plant-pot entity slot and walk to the next.
|
||||
| Initialise_Entity_Defaults_WriteType | 43906 | LD (IX+0),18 | Write 18 to the current entity's entity type. | |
| 43910 | LD (IX+1),27 | Write 27 to the current entity's flags byte 1. | ||
| 43914 | LD (IX+10),L | Set the low byte of the current entity's graphic layout address from L. | ||
| 43917 | LD (IX+11),H | Set the high byte of the current entity's graphic layout address from H. | ||
| 43920 | ADD IX,DE | Advance IX to the next entity record. | ||
| 43922 | DJNZ Initialise_Entity_Defaults_WriteType | Decrease the loop counter in B and jump to Initialise_Entity_Defaults_WriteType if more iterations remain. | ||
| 43924 | RET | Return. | ||
| Prev: 43889 | Up: Map | Next: 43925 |