![]() |
Routines |
| Prev: 49578 | Up: Map | Next: 49614 |
|
Used by the routine at CheckItemDelivery.
Makes an object of type 12 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 | 49580 | CALL FreeObjectSlot | Call FreeObjectSlot. | |||||||||
| 49583 | LD (IX+0),12 | Store 12 at offset 0 of IX. | ||||||||||
| 49587 | LD (IX+19),B | Write B to offset 19 of IX. | ||||||||||
| 49590 | LD (IX+13),255 | Store 255 at offset 13 of IX. | ||||||||||
| 49594 | LD A,(HL) | Read HL. | ||||||||||
| 49595 | LD (IX+1),A | Write A to offset 1 of IX. | ||||||||||
| 49598 | INC HL | Advance HL. | ||||||||||
| 49599 | LD A,(HL) | Read HL. | ||||||||||
| 49600 | LD (IX+4),A | Write A to offset 4 of IX. | ||||||||||
| 49603 | INC HL | Advance HL. | ||||||||||
| 49604 | LD A,(HL) | Read HL. | ||||||||||
| 49605 | LD (IX+2),A | Write A to offset 2 of IX. | ||||||||||
| 49608 | INC HL | Advance HL. | ||||||||||
| 49609 | LD A,(HL) | Read HL. | ||||||||||
| 49610 | LD (IX+5),A | Write A to offset 5 of IX. | ||||||||||
| 49613 | RET | Return. | ||||||||||
| Prev: 49578 | Up: Map | Next: 49614 |