The simulation update loop currently updates all cells in a single
frame.
This is way too slow and will need to be split up.
ld a, [de] ; a = head offset
and a, CF_HEAD
; if not head cell return
- ret nz
+ ret z
; save cell ptr
dec de ; de is c_type
; de = c_st_routine
; store next routine
- ld a, b
- ld [de], a
ld a, c
+ ld [de], a
+ ld a, b
inc de
ld [de], a
#define NEGATE -1 & 0xFF
#define LO & 0xFF
-#define HI >> 4 & 0xFF
+#define HI >> 8 & 0xFF
#macro dblo
.db $1 & 0xFF
ld de, actor_player
call st_update
- ; call sim_update
+ call sim_update
ldnull bc
ret