![]() |
Routines |
| Prev: C1AA | Up: Map | Next: C1CE |
|
Used by the routine at CheckItemDelivery.
Makes an object of type 0C in a slot, with the state in B and a position that is held in four bytes: the map column, the map zone, the horizontal position and the vertical position.
|
||||||||||||
| CreatePiece | C1AC | CALL FreeObjectSlot | Call FreeObjectSlot. | |||||||||
| C1AF | LD (IX+$00),$0C | Store 0C at offset 00 of IX. | ||||||||||
| C1B3 | LD (IX+$13),B | Write B to offset 13 of IX. | ||||||||||
| C1B6 | LD (IX+$0D),$FF | Store FF at offset 0D of IX. | ||||||||||
| C1BA | LD A,(HL) | Read HL. | ||||||||||
| C1BB | LD (IX+$01),A | Write A to offset 01 of IX. | ||||||||||
| C1BE | INC HL | Advance HL. | ||||||||||
| C1BF | LD A,(HL) | Read HL. | ||||||||||
| C1C0 | LD (IX+$04),A | Write A to offset 04 of IX. | ||||||||||
| C1C3 | INC HL | Advance HL. | ||||||||||
| C1C4 | LD A,(HL) | Read HL. | ||||||||||
| C1C5 | LD (IX+$02),A | Write A to offset 02 of IX. | ||||||||||
| C1C8 | INC HL | Advance HL. | ||||||||||
| C1C9 | LD A,(HL) | Read HL. | ||||||||||
| C1CA | LD (IX+$05),A | Write A to offset 05 of IX. | ||||||||||
| C1CD | RET | Return. | ||||||||||
| Prev: C1AA | Up: Map | Next: C1CE |