Search found 1730 matches

by stefano
Wed Sep 15, 2021 1:48 pm
Forum: Sinclair ZX
Topic: Source level debugger
Replies: 6
Views: 838

Re: Source level debugger

As usual on the consolidated projects, the FUSE team (as well as the MAME one) is very cautious in accepting pulls. MAME even require precise cosmetic rules, despite the lot of historical mess :) In general, if you propose new features, they must be cool and portable (I remember a cool FDD3000 emula...
by stefano
Wed Sep 15, 2021 1:28 pm
Forum: CP/M, FLOS and OS related
Topic: Carousel CP/m Tools
Replies: 0
Views: 104

Carousel CP/m Tools

https://github.com/zx70/Carousel-CP-M-Tools I used a customization of "archx.c" and split the original archives into files, then I sorted them out in separate folders respecting the original file names and groups. The tools were written in RATFOR, a preprocessor which permitted C like stru...
by stefano
Sun Aug 15, 2021 4:59 pm
Forum: Sinclair ZX
Topic: Compile and link data to a predetermined address
Replies: 7
Views: 456

Re: Compile and link data to a predetermined address

Zorg provides a way to set a start address to the linker, it is meant to locate a monolithic program at a certain position.
On sccz80 you can specify the data position for a specific pointer, eg with the '@' operator
by stefano
Fri Aug 13, 2021 3:34 pm
Forum: CP/M, FLOS and OS related
Topic: New tool for cp/m
Replies: 0
Views: 170

New tool for cp/m

I found this nice tool collection on the Televideo archives called "Carousel Microtools". http://www.bitsavers.org/bits/Televideo/programs/Carousel_Microtools/ It included an archiver written in RATFOR, which is an evident relative of the historical archiver available in the DECUS C tapes....
by stefano
Thu Aug 12, 2021 5:48 pm
Forum: Misc
Topic: What are calls to l_gint and l_pint for?
Replies: 9
Views: 792

Re: What are calls to l_gint and l_pint for?

There's also a number of hidden aspects people does not think at when checking a compiler output, the same instructions must be valid in different code structures, just think at how flags differ depending on the instruction and on the datatype ("dec a" versus "dec hl", ld a,0 ver...
by stefano
Wed Jul 28, 2021 10:05 pm
Forum: Sinclair ZX
Topic: Colossal Cave was.. colossal :|
Replies: 5
Views: 523

Re: Colossal Cave was.. colossal :|

I think it took 20 minutes, with that max-allocs depth.
Probably the 'colossal' name comes from the original intentions, they had a big computer and wanted to get a big game on it, the memory waste is astonishing, just look at the random messages for the player's death! :D
by stefano
Wed Jul 28, 2021 4:20 pm
Forum: Sinclair ZX
Topic: Colossal Cave was.. colossal :|
Replies: 5
Views: 523

Colossal Cave was.. colossal :|

I UNSUCCESFULLY tried to get a banked version of the 550 pts version of the C version of the Colossal Cave adventure game. (https://github.com/Quuxplusone/Advent/blob/master/ODWY0550/) The current size of the obj files, trying to squeeze out a little more by involving sdcc (-compiler=sdcc -SO3 --max...
by stefano
Sat Jul 24, 2021 9:12 am
Forum: Other targets
Topic: Hi-Soft experience ?
Replies: 7
Views: 646

Re: Hi-Soft experience ?

I never knew that Hisoft C came from BDS C !
By the way, I think the cp/m port I was referring to is the qorum's spectrum clone one:

https://sudonull.com/post/157918-CP-M-8 ... m-Spectrum
https://github.com/atsidaev/quorum-cpm
by stefano
Fri Jul 23, 2021 7:31 am
Forum: Other targets
Topic: Hi-Soft experience ?
Replies: 7
Views: 646

Re: Hi-Soft experience ?

Regarding the opportunity to have a native compiler HiSoft C is the historical option for the zx Spectrum. There's probably little useful to gather for z88dk, anyway, but for sure many ideas, or even code portions (where legal) came from old tools and were used in z88dk. A very interesting hack I sa...
by stefano
Fri Jun 25, 2021 4:04 pm
Forum: Misc
Topic: New portable game
Replies: 0
Views: 187

New portable game

https://github.com/z88dk/z88dk-ext/blob/master/text-games/dallas.c Here is my contribution to honor the incredible work Dom recently did to bring the console I/O library into a compatible realm. The old 'Dallas' game seemed perfect for it, it required UDGs (or special text symbols for the map), soun...
by stefano
Mon Jun 21, 2021 4:38 pm
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 7
Views: 760

Re: Cubic Bezier Curves

Andy, I thought the (portable) classic graphics library was accessible from the "new" lib but I was wrong. Sorry for the misleading comment.
by stefano
Fri Jun 18, 2021 9:25 pm
Forum: Other targets
Topic: VT Ansi, minor improvements
Replies: 0
Views: 221

VT Ansi, minor improvements

I noticed that it is useful to use the VT colour sequences to change the current background after a CLS character, so I'm updating the target drivers accordingly, it is a handy trick to gather a bit more of portability. I also updated the MZ driver to make most of the graphics symbols printable with...
by stefano
Thu Jun 17, 2021 9:07 pm
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 7
Views: 760

Re: Cubic Bezier Curves

it's an interesting project definitely, but, duh.. why are you plotting in that way?
by stefano
Fri Jun 11, 2021 5:13 am
Forum: CP/M, FLOS and OS related
Topic: (Classic) New target: Bondwell Model 2
Replies: 11
Views: 1642

Re: (Classic) New target: Bondwell Model 2

Dom, what am I supposed to do to enable the ANSI terminal support here ?
-clib=ansi does not seem to be the way:

Error at file 'c:/z88dk/lib/../lib/crt/classic/crt_runtime_selection.asm' line 333: symbol 'fputc_cons_ansi' not defined
^ ---- defc fputc_cons = fputc_cons_ansi
by stefano
Sat Jun 05, 2021 2:03 pm
Forum: Other targets
Topic: TRS80 model 3 sound
Replies: 8
Views: 733

Re: TRS80 model 3 sound

you may have noticed the #asm directive, labels and mnemonics are allowed ;)
by stefano
Fri Jun 04, 2021 8:41 pm
Forum: Misc
Topic: Fast Sine calculation
Replies: 3
Views: 573

Re: Fast Sine calculation

There's also an integer simplification in lib3d, if you're interested in speed. Some of the examples use it.
by stefano
Fri Jun 04, 2021 8:27 pm
Forum: Other targets
Topic: TRS80 model 3 sound
Replies: 8
Views: 733

Re: TRS80 model 3 sound

Your function can be simply put in a code frame in C,

e.g. something like:

void mysound() {
#asm
defb 33,0,0, ...
#endasm
}
by stefano
Fri Jun 04, 2021 8:15 pm
Forum: Other targets
Topic: TRS80 model 3 sound
Replies: 8
Views: 733

Re: TRS80 model 3 sound

The bit_fx functions are smaller, the example program looks big because it uses them all together and includes the console output code.
by stefano
Wed Jun 02, 2021 4:41 pm
Forum: Other targets
Topic: TRS80 model 3 sound
Replies: 8
Views: 733

Re: TRS80 model 3 sound

that poke sequence is creating a z80 machine code routine looping around the out (ff) instruction. I think that the existing z88dk functions are already built to work on that port.
Could you try the examples provided in the "sound" folder? are they all failing?
by stefano
Fri May 21, 2021 3:59 pm
Forum: Other targets
Topic: [Microbee] Which mode is 160x48?
Replies: 5
Views: 522

Re: [Microbee] Which mode is 160x48?

and yes, the hw permits the characters to be reprogrammed
by stefano
Fri May 21, 2021 3:53 pm
Forum: Other targets
Topic: [Microbee] Which mode is 160x48?
Replies: 5
Views: 522

Re: [Microbee] Which mode is 160x48?

https://en.m.wikipedia.org/wiki/MicroBee
look at the section referring to the Premuim version (1985)

The SW Sprites are supported.
by stefano
Wed May 19, 2021 7:42 am
Forum: Bug reports
Topic: Another bug found
Replies: 1
Views: 413

Re: Another bug found

The problem vanishes if you switch to "-clib=sdcc_iy", I see that with sdcc_ix, the way to deal with the hello() function parameters changes radically.
by stefano
Sat May 15, 2021 9:27 pm
Forum: CP/M, FLOS and OS related
Topic: DR GSX Graphic Extension
Replies: 8
Views: 1348

Re: DR GSX Graphic Extension

The bugs I found in the way delayed my work a bit. Having now the fcntl and parameter parsing components fixed is very positive, though! I'm still verifying the way a GSX driver works, I suspect that it doesn't work on a virtual 32768x32768 pixel range, it could be gsx.sys the one converting the coo...
by stefano
Fri May 14, 2021 9:19 pm
Forum: Other targets
Topic: Joystick options per target? Cursors as joystick on all targets with cursors?
Replies: 11
Views: 1062

Re: Joystick options per target? Cursors as joystick on all targets with cursors?

Sorry for getting here late, you could add HAVE_CLOCK and HAVE_DATE (this latter is less interesting, I think) and/or we could invent a custom funnction name like randomize().. Other possible options could involve graphics resolution ranges (wide, blocky..), CPU speed (e.g. FAST_CPU or SLOW_CPU), co...