z88dk forums

z80 Development Kit

You are not logged in.

#1 2017-01-02 05:25:38

alvin
Administrator
Registered: 2007-07-16
Posts: 1932

[z88dk-dev] Issues with classic sms examples

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

Offline

 

#2 2017-03-14 13:26:47

stefano
Administrator
Registered: 2007-07-16
Posts: 1581

Re: [z88dk-dev] Issues with classic sms examples

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

Offline

 

#3 2017-03-14 21:38:15

dom
Administrator
Registered: 2007-07-15
Posts: 1446
Website

Re: [z88dk-dev] Issues with classic sms 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.

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

Offline

 

#4 2017-03-15 21:02:24

stefano
Administrator
Registered: 2007-07-16
Posts: 1581

Re: [z88dk-dev] Issues with classic sms examples

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

Offline

 

#5 2017-03-16 08:42:26

stefano
Administrator
Registered: 2007-07-16
Posts: 1581

Re: [z88dk-dev] Issues with classic sms examples

"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  tongue

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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson