Search found 2257 matches

by stefano
Fri Sep 06, 2024 3:30 pm
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

The FAST mode skips the custom interrupt handler which depends on the IY index register (perhaps also AF', I don't remember right now). I tend to prefer the small C and K&R (to some extent), but it is satisfactory to just build a generic program in C and get it running with almost no effort. Whe...
by stefano
Fri Sep 06, 2024 3:26 pm
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

The FAST mode skips the custom interrupt handler which depends on the IY index register (perhaps also AF', I don't remember right now).
by stefano
Sat Aug 31, 2024 9:00 am
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

In the meanwhile I pulled some more stuff, text3dlabyrinth is interesting (also labyriynth was though)
by stefano
Fri Aug 30, 2024 10:24 pm
Forum: CP/M, FLOS and OS related
Topic: compounds literal and c99
Replies: 31
Views: 6006

Re: compounds literal and c99

Z88dk provides two different compiler engines, try building your program with :
Zcc +cpm -compiler=sdcc. .....
by stefano
Thu Aug 29, 2024 3:57 pm
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

More interesting problems, the game runs perfectly on a ZX Spectrum but self destroys itself if run on a zx81 unless the FAST mode is used.
Similarly the Sharp MZ, (after having applied a timer workaround for srand) crashes rather soon.
by stefano
Wed Aug 28, 2024 10:53 am
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

I decided to work it out, it was too nice to remove it. Apparently chained assignments gave most of the problems. I destroyed a good part of the program structure using a lot of globals to shrink the resulting binary. I'm still checking it but it looks playable now. EDIT: it looks good now, it is a ...
by stefano
Wed Aug 28, 2024 6:37 am
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

Hey, it's a lot of useful considerations, thank you! It is pointless to publish a non working program, I'm removing it from the archive, I'll put it back in if I'll ever get it working properly. The original copy is here: https://github.com/cymonsgames/CymonsGames/blob/master/battleship/main.c I als...
by stefano
Tue Aug 27, 2024 5:33 pm
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

.. I think it can be due to the way I've adjusted the code to be compatible with z88dk.
The parameter passing wouldn't have allowed a struct in function arguments in sccz80, I've replaced it with a pointer to a struct, I bet I've done it wrong.
by stefano
Tue Aug 27, 2024 2:21 pm
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Re: Is it me or z88dk?

Thank you Timmy ! I tested this same game on different environments, it is definitely a critical piece of code, even recent online compilers seem to behave incorrectly. I'm not even 100% sure the code is correct, but it is strange to observe different behaviors on different environments, unless some...
by stefano
Tue Aug 27, 2024 9:45 am
Forum: Misc
Topic: Is it me or z88dk?
Replies: 11
Views: 5946

Is it me or z88dk?

From time to time I try to adapt a random program to z88dk, the portability in C is something really fascinating me. This one does not work right but builds. Is it useful as a test case or I should just remove it from the "ext" archive ? https://github.com/z88dk/z88dk-ext/blob/master/text-...
by stefano
Wed Aug 21, 2024 1:07 pm
Forum: CP/M, FLOS and OS related
Topic: (New Target) Xerox 820
Replies: 26
Views: 16010

Re: (New Target) Xerox 820

As I wrote before in this same post (see the Dallas game), a more regular blocky graphics should be possible on the Xerox 820-II which, in my information, was rather popular at the time but I couldn't find a fully working emulation for it.
by stefano
Mon Aug 19, 2024 5:29 pm
Forum: Other platforms
Topic: nightly.z88dk.org not online
Replies: 6
Views: 7673

Re: nightly.z88dk.org not online

Yet the availability rate in all those years has been rather pro. :)
by stefano
Fri Aug 16, 2024 10:14 am
Forum: Other targets
Topic: An idea for faster floating point in Z80 compilers
Replies: 2
Views: 6029

Re: An idea for faster floating point in Z80 compilers

The way we addressed the maths library is rather flexible, we now have a lot of precision options and others targetted to specific versions. IMHO it a fixed point implementation could be even slower than a low precision floating point library, it could be interesting for high variable precision, tho...
by stefano
Wed Aug 14, 2024 7:41 am
Forum: CP/M, FLOS and OS related
Topic: (New Target) TIM-011
Replies: 16
Views: 9813

Re: (New Target) TIM-011

blind suggestiom: try replacing pi() or PI with M_PI
by stefano
Thu Aug 08, 2024 9:12 pm
Forum: CP/M, FLOS and OS related
Topic: (New Target) TIM-011
Replies: 16
Views: 9813

Re: (New Target) TIM-011

For point #2, there's a C implementation for the c128 in targets/c128/c128.
lineivdc.c. and linevdc.c
by stefano
Mon Jul 22, 2024 8:14 pm
Forum: Other targets
Topic: Asteroids for ReGIS Screen (CP/M)
Replies: 11
Views: 7762

Re: Asteroids for ReGIS Screen (CP/M)

Isin() and icos() are in the library already, but I'm afraid the further boost won't be enough
by stefano
Thu Jul 18, 2024 5:14 pm
Forum: Texas Instruments Calculators
Topic: [TI-83 Plus] How do I compile the code?
Replies: 4
Views: 14689

Re: [TI-83 Plus] How do I compile the code?

I just spotted this video suggesting an interesting workaround for the TI84


https://youtu.be/lCoG9OQ2mCk?t=75
https://youtu.be/lCoG9OQ2mCk?t=169
by stefano
Thu Jul 18, 2024 9:05 am
Forum: Other targets
Topic: Galaksija
Replies: 60
Views: 43797

Re: Galaksija

Very well, it will help also xample.c, even though attempting to simulate the X11 library is rather extreme
by stefano
Wed Jul 17, 2024 2:04 pm
Forum: Sinclair ZX
Topic: <bgi.h> improved
Replies: 2
Views: 4850

Re: <bgi.h> improved

I've just reworked the macros a little to fix the "arc" orientation, it changed the "pieslice" and similar functions behaviour which required various adjustments. tajmahal.png The new macro set includes working virtual getmaxx() and getmaxy() results when the picture needs rescal...
by stefano
Sun Jul 14, 2024 9:51 am
Forum: Other targets
Topic: Galaksija
Replies: 60
Views: 43797

Re: Galaksija

Robert, does invazion run a little better?
Do not expect a frantic chase. 😅
by stefano
Sat Jul 13, 2024 10:25 am
Forum: Japanese (Sharp, NEC, Casio, Epson..)
Topic: epson px8
Replies: 11
Views: 15827

Re: epson px8

I think the inclusion of graphics.h enables the callee parameter passing mode, which in theory makes the code faster and smaller. Probably the slowness in place of the expected speed has to do with the subcpu involement, e.g. it takes long to compute the line coordinates, or maybe the choke is in th...
by stefano
Fri Jul 12, 2024 11:05 am
Forum: Japanese (Sharp, NEC, Casio, Epson..)
Topic: epson px8
Replies: 11
Views: 15827

Re: epson px8

Nope, it works properly here. I see the line being filled at the very beginning, then the countdown starts and the line gets progressively deleted from right to left. Also chessboard.c and clock.c work correctly. Really I don't know what to say, supposing we both have an updated z88dk environment an...
by stefano
Fri Jul 12, 2024 10:19 am
Forum: Japanese (Sharp, NEC, Casio, Epson..)
Topic: epson px8
Replies: 11
Views: 15827

Re: epson px8

Well, this is puzzling, the Emulator copy I have is probalby older, my z88dk kit is reasonably in line with the one on GitHub, and it is running properly. I built your program by just adding the inclusion of <graphics.h>, then: zcc +cpm -subtype=px8ansi -create-app fueltest.c ( I will look in the &q...
by stefano
Fri Jul 12, 2024 7:57 am
Forum: Japanese (Sharp, NEC, Casio, Epson..)
Topic: epson px8
Replies: 11
Views: 15827

Re: epson px8

Confirmed, it works on the updated Takeda's emulators suite. On which emulator are you running it on ? The emulators often are weak in emulating the SUBCPU behavior, the commands needs to be tested one by one, often without a software base to check the overall functionalities. I had to refer to the ...
by stefano
Fri Jul 12, 2024 6:53 am
Forum: Japanese (Sharp, NEC, Casio, Epson..)
Topic: epson px8
Replies: 11
Views: 15827

Re: epson px8

Thanks, I will check.
For your information, if you are using the Takeda's project emulator it had a bug in the graphics CPU emulation, fixed in the late versions.