I think I have found a problem when compiling with SDCC. The symptoms are:
Code: Select all
make -f Makefile-48 engine/src/bullet.o
Compiling engine/src/bullet.c ...
engine/src/bullet.c:1033: error: syntax error
^---- ld h, iyl
engine/src/bullet.c:1039: error: syntax error
^---- ld h, iyl
make: *** [Makefile.common:107: engine/src/bullet.o] Error 1
Code: Select all
(snippet from engine/src/bullet.c.asm)
...
inc hl
ld (hl), d
;engine/src/bullet.c:84: bs->xthresh = BULLET_SPRITE_XTHRESH;
ld l, b
ld h, iyl
ld de,0x0011
add hl, de
ld (hl),0x04
;engine/src/bullet.c:85: bs->ythresh = BULLET_SPRITE_YTHRESH;
ld l, b
ld h, iyl
ld de,0x0012
add hl, de
Did I strike an SDCC code generation bug?
J.