[z88dk-dev] Issues with classic sms examples

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] Issues with classic sms examples

Post by alvin »

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
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Checking on the sms examples in:
http://z88dk.cvs.sourceforge.net/viewvc ... mples/sms/

I found a few issues:
I seem to recall a similar issue on other examples.

FYI I think I just fixed the Spectrum part. The CLISP build with the classic library is now producing a buggy program (I don't know why), so I'm not including it, yet.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

FYI I think I just fixed the Spectrum part. The CLISP build with the classic library is now producing a buggy program (I don't know why), so I'm not including it, yet.
I've tried out with sdcc and sccz80 on CP/M and the ticks target, it looks like there's an issue with gets() never returning. It now checks for both 10d and 13d for the return condition and functionality is restored.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Dom, I'm not 100% sure it is only for your latest correction, but a refresh from the nightly build fixed crisp and most of the SMS demos!
There are still the two pinball programs not running well, but it must be a totally different story.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

"crisp".. sounds nice but it was "CLISP" when I typed it.
An octacore tablet is not yet as accurate as a z88dk program run on a gummy ZX Spectrum :P

I just fixed and improved the basic "psg" support for the Spectrum and inserted back the new "snakes" example, this time pointing to the correct path :$

I always underestimated the benefit of the example programs, my only goal was initially to show the lib capabilities and suggest ways to have a program easily ported. By the way they are now a good test case while porting the libraries to new targets as well as a quick way to make some regression test on the libraries.

Stefano



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Post Reply