Search found 2190 matches

by stefano
Mon Nov 06, 2023 9:31 pm
Forum: Other targets
Topic: C128 and SG tools
Replies: 9
Views: 11342

Re: C128 and SG tools

Interesting!
It is again a relevant quantity of functions. It's probably easier to first try replicating the exact functions by using the demonstration programs as test cases.
I haven't looked at the code yet but it should be feasible.
by stefano
Sun Nov 05, 2023 7:46 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

are you focusing on the spectrum? the Amstrad cpc is another interesting challenge

https://github.com/z88dk/z88dk/blob/a9b ... ns.asm#L29
by stefano
Sun Nov 05, 2023 7:27 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

I may have misunderstood your case, but isn't it the same also with the zx microdrive, opus discovery and others?
by stefano
Tue Oct 31, 2023 12:21 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

The FP calculator is so slow. Perhaps it was used in extended BASIC or compiler implementations, BASIC extensions, like extra commands, assembly written USR functions to fit into DEF FN declarations, etc. I think decoding the RST28 was often present in zx spectrum disassemblers, I remember "zoo...
by stefano
Mon Oct 30, 2023 10:02 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

> Page 102 of this document

wow, and I even knew it ! it's too long I left the TI calculator behind.
by stefano
Mon Oct 30, 2023 9:59 pm
Forum: CP/M, FLOS and OS related
Topic: Deflate algorithm and unzip tools
Replies: 2
Views: 1801

Re: Deflate algorithm and unzip tools

very interesting, thank you for pointing it out, I'll surely try to compare them!
by stefano
Sun Oct 29, 2023 9:42 am
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

cborn, what I wanted to say is that youwould hardly cover all the tricks the programmers used in their code. The Microsoft Basic, in example, uses an RST (where possible, on other targets it is a CALL) to do the syntax checking, by putting the required symbol just after the call. If the symbol doesn...
by stefano
Sat Oct 28, 2023 10:09 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

There's yet another answer I can give (after searching it online) : https://retrocomputing.stackexchange.com/questions/24899/why-does-cp-m-use-call-0005h-for-its-syscalls probably the CP/M BDOS entry was place at address 0005 to avoid conflicts with an EXISTING RST mechanism on computers already exi...
by stefano
Sat Oct 28, 2023 9:23 pm
Forum: Misc
Topic: differences in RST commands (?)
Replies: 18
Views: 4244

Re: differences in RST commands (?)

well, let me try to clarify a little bit. First of all, you should know that the RST calls (close relatives of the INT entries on the Intel x86 CPUs) can be considered simply as a trick to save memory, using an RST entry in place of the more used CALLs in your program. A Z80 often will have a ROM on...
by stefano
Fri Oct 27, 2023 10:38 pm
Forum: CP/M, FLOS and OS related
Topic: Deflate algorithm and unzip tools
Replies: 2
Views: 1801

Deflate algorithm and unzip tools

On September 2020 Martin ..someone implemented the deflate algorithm for the z80 basing on a Hitech C source for the Amiga. This allowed an incredible improvement of the famous unzip tool for CP/M originally written in 1991: now it works with the modern zip archives too. https://github.com/agn453/UN...
by stefano
Fri Oct 20, 2023 6:45 pm
Forum: Texas Instruments Calculators
Topic: [TI-83 Plus] How do I compile the code?
Replies: 3
Views: 5501

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

we have finally news on this topic! EDIT: appmake is now creating TI83 Plus applications in the "right" format, a.k.a. the format expected by the recent tools and emulators, like Wabbitemu. I kept an option on appmake, "-Cz--oldfmt", to restore the ancient, probably wrong, way to...
by stefano
Tue Oct 17, 2023 10:24 am
Forum: CP/M, FLOS and OS related
Topic: FileIO and User areas
Replies: 7
Views: 2069

Re: FileIO and User areas

Yes, I chose to stick the prefix to deal with the user number on top of the original BDS C parser to leave the rest of the code untouched.
I was so surprised that it was fitting with almost no changes that I was treating it like a magic item.
by stefano
Mon Oct 16, 2023 3:20 pm
Forum: CP/M, FLOS and OS related
Topic: FileIO and User areas
Replies: 7
Views: 2069

Re: FileIO and User areas

It probably depends on the asm implementation of parsefcb (in parsefcb.c).

Please try specifying a filename including the user number on top, it should be something like:

0/a:file.txt

Apologies for the mess, it looked like a brillant idea, long time ago..
by stefano
Thu Oct 12, 2023 5:17 pm
Forum: Sinclair ZX
Topic: ZXMATH library buggy
Replies: 2
Views: 1606

Re: ZXMATH library buggy

On the ZXROM side, fmax() and fmin() are now fixed. I also added less common functions like cbrt(), hypoth(), exp2()...
The overall support is still poor but slightly better.
by stefano
Thu Oct 12, 2023 8:45 am
Forum: Sinclair ZX
Topic: ZXMATH library buggy
Replies: 2
Views: 1606

Re: ZXMATH library buggy

I updated the test program above.
Proceeding with the tests I discovered that we have an issue on asin() and acos() in genmath !
This time the crappy zxmath is doing well.
math_bug.png
by stefano
Tue Oct 10, 2023 2:19 pm
Forum: Sinclair ZX
Topic: ZXMATH library buggy
Replies: 2
Views: 1606

ZXMATH library buggy

While interfacing the LAMBDA libraries to the the Sinclair BASIC, few bugs are emerging. So far I had to fix fmod() and log10(), I'm taking the opportunity to test it furtherly. I noticed that the game dallas.c is crashing, it could be my next test case. This very dumb piece of code is helping me. S...
by stefano
Tue Oct 10, 2023 7:19 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: assembler-only projects and appmake?
Replies: 1
Views: 1679

Re: assembler-only projects and appmake?

Yes. Depending on the target system it could be not so straightforward, the problem is whether the position for ORG is flexible on that target or require a specific value (to be found in lib/targets/*/*crt0*. Run appmake +target -h and check if the "-zorg" option is available. Usually addi...
by stefano
Tue Oct 10, 2023 6:11 am
Forum: Other platforms
Topic: Better Linux Install Experience?
Replies: 50
Views: 56645

Re: Better Linux Install Experience?

The library version depends on the z80asm version, which in turn is being massively improved. It shouldn't be a problem at all with the z88dk libraries, the way I'm rebuilding them on Windows with mingw: - move into the libsrc folder - run make - mv *.lib ../lib/clibs If you're willing to keep the o...
by stefano
Thu Oct 05, 2023 6:41 am
Forum: Other platforms
Topic: Better Linux Install Experience?
Replies: 50
Views: 56645

Re: Better Linux Install Experience?

Back to the original "incipit" of this thread, I think it's quite common for most of the C / C++ environment to give a generous headache to whom is willing to set it up for the first time, no matter on which platform you are. A simpler compiler makes life easier but it won't be powerful, i...
by stefano
Tue Oct 03, 2023 2:32 pm
Forum: Sinclair ZX
Topic: ZX81 clones
Replies: 1
Views: 1607

Re: ZX81 clones

The new modes: -subtype=mono is the one for the less common v1 ROM, which was closer to the ZX81 one asked lacked colour instructions. The optional mlambdav1.lib and mlambdav1_tiny.lib maths optimisations are the valid replacements equivalenti to m81 or mlambda. -subtype=cac3. Is for a less common v...
by stefano
Fri Sep 22, 2023 8:40 am
Forum: Sinclair ZX
Topic: ZX81 clones
Replies: 1
Views: 1607

ZX81 clones

Few years ago the zx81.de team shared interesting details related to the Lambda clones. The well known color models had an earlier ROM version, probably too similar to the ZX81 one and missing the INK/BORDER/PAPER statements. Moreover another variant used in the CAC-3 and the NF300 included support ...
by stefano
Sat Sep 16, 2023 6:21 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: [coleco] add pragmas for OS7 features?
Replies: 28
Views: 5794

Re: [coleco] add pragmas for OS7 features?

You're awakening my interest 😅
Really I could never be of any help with the Coleco target, but those efforts with a Pascal cross development are something which happened also elsewhere (the earlier 16 bit Apple systems, in example).
Please keep on digging into the code ;)
by stefano
Fri Sep 15, 2023 7:36 am
Forum: Sinclair ZX
Topic: this program crashes the spectrum
Replies: 12
Views: 3451

Re: this program crashes the spectrum

I described the -DAMALLOC1, -DAMALLOC2 and -DAMALLOC3 options here: https://www.z88dk.org/forum/viewtopic.php?t=5859 They're three possible presets based on the assumptions that you have some free memory between the user area and the stack, it's something an IT purist (@Alvin ? :D) possibly wouldn't...
by stefano
Sun Sep 10, 2023 4:14 pm
Forum: Sinclair ZX
Topic: struct within a struct
Replies: 4
Views: 1745

Re: struct within a struct

- C is suited to this task much more than BASIC , thanks
..which, if you're using a Sinclair computer, you can still mix with BASIC