![]() |
Routines |
| Prev: FA9E | Up: Map | Next: FB2F |
|
Used by the routine at JumpTable_SpawnEntity.
Spawns or resets the entity at IX.
|
||||||||||||||||||||
| Spawn_Entity | FAFE | LD (IX+$00),C | Write the column and row into the current and stored slots. | |||||||||||||||||
| FB01 | LD (IX+$01),B | |||||||||||||||||||
| FB04 | LD (IX+$0A),C | |||||||||||||||||||
| FB07 | LD (IX+$0B),B | |||||||||||||||||||
| FB0A | LD (IX+$04),E | Write the width, height and sprite ID. | ||||||||||||||||||
| FB0D | LD (IX+$05),D | |||||||||||||||||||
| FB10 | LD (IX+$06),A | |||||||||||||||||||
| FB13 | LD (IX+$07),L | Write the colour. | ||||||||||||||||||
| FB16 | LD (IX+$02),$07 | Write 07 as both fine offsets. | ||||||||||||||||||
| FB1A | LD (IX+$03),$07 | |||||||||||||||||||
| FB1E | LD (IX+$0C),$07 | |||||||||||||||||||
| FB22 | LD (IX+$0D),$07 | |||||||||||||||||||
| FB26 | LD (IX+$08),$00 | Clear the movement deltas. | ||||||||||||||||||
| FB2A | LD (IX+$09),$00 | |||||||||||||||||||
| FB2E | RET | Return. | ||||||||||||||||||
| Prev: FA9E | Up: Map | Next: FB2F |