[z88dk-dev] Issues with classic sms examples
Posted: Mon Jan 02, 2017 5:25 am
Checking on the sms examples in:
http://z88dk.cvs.sourceforge.net/viewvc ... mples/sms/
I found a few issues:
Both pong master games do not appear to display properly. I did get them to run with a little experimentation but the background and score display don't look right.
The makefile may have to be redone. A few targets are made into .sms files without using -create-app (the raw binary is named *.sms). This is definitely wrong. We may want to revisit the build steps too given that appmake for sms was changed. Here's how I was compiling these examples:
zcc +sms -v -O3 chicken.c chicken_graphics.asm -o chicken -create-app
There are some issues with sdcc compiles.
Sdcc compile of chicken.c causes a seg fault. This problem may be in sdcc although I'm not sure what is causing it yet.
Sdcc compile of apktest.c results in symbol "_load_palette" not found. This is because the header is using __LIB__ for the sccz80 prototypes so that sccz80 looks for "load_palette" but sdcc has no equivalent so it looks for "_load_palette" which does not exist.
zcc +sms -v -compiler=sdcc -SO3 --max-allocs-per-node200000 --fsigned-char apktest.c testtxt_apk.asm -o apktest -create-app
I stopped there since that sort of error is going to prevent most of those examples from compiling under sdcc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
http://z88dk.cvs.sourceforge.net/viewvc ... mples/sms/
I found a few issues:
Both pong master games do not appear to display properly. I did get them to run with a little experimentation but the background and score display don't look right.
The makefile may have to be redone. A few targets are made into .sms files without using -create-app (the raw binary is named *.sms). This is definitely wrong. We may want to revisit the build steps too given that appmake for sms was changed. Here's how I was compiling these examples:
zcc +sms -v -O3 chicken.c chicken_graphics.asm -o chicken -create-app
There are some issues with sdcc compiles.
Sdcc compile of chicken.c causes a seg fault. This problem may be in sdcc although I'm not sure what is causing it yet.
Sdcc compile of apktest.c results in symbol "_load_palette" not found. This is because the header is using __LIB__ for the sccz80 prototypes so that sccz80 looks for "load_palette" but sdcc has no equivalent so it looks for "_load_palette" which does not exist.
zcc +sms -v -compiler=sdcc -SO3 --max-allocs-per-node200000 --fsigned-char apktest.c testtxt_apk.asm -o apktest -create-app
I stopped there since that sort of error is going to prevent most of those examples from compiling under sdcc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot