Search found 1725 matches

by stefano
Wed Jul 28, 2021 10:05 pm
Forum: Sinclair ZX
Topic: Colossal Cave was.. colossal :|
Replies: 4
Views: 38

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: 4
Views: 38

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: 261

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: 261

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: 98

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: 435

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: 131

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: 435

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: 1220

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: 407

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: 387

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: 407

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: 407

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: 407

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: 311

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: 311

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: 274

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: 1048

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: 676

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...
by stefano
Thu May 13, 2021 8:20 pm
Forum: Sinclair ZX
Topic: Tic Tac Woe
Replies: 8
Views: 526

Re: Tic Tac Woe

beautiful, Marcello (and Luciano) will love it!
by stefano
Fri May 07, 2021 8:17 pm
Forum: Other targets
Topic: c128 fast execution
Replies: 4
Views: 290

Re: c128 fast execution

No. the loader simply switches to the new CPU and jumps.
There could be something in the data allocation setup, though. Nothing which I'd expect to differ between the different targets, though.. perhaps the Z80 on the c128 runs VERY slowly.
by stefano
Mon May 03, 2021 6:48 pm
Forum: Sinclair ZX
Topic: Tic Tac Woe
Replies: 8
Views: 526

Re: Tic Tac Woe

That's due to a closer compliance to the POSIX C syntax, itoa() now works the way it should ;)
by stefano
Tue Apr 20, 2021 8:33 pm
Forum: Sinclair ZX
Topic: link about Disciple and +D
Replies: 2
Views: 299

Re: link about Disciple and +D

thankyou for reminding it! I didn't remember that post. Enrico is now a pro developer which began on the Spectrum. He did interesting stuff (now lost) on the microdrive, then moved on the Disciple. He designed a serial interface for the Spectrum and wrote interesting software for it: a good terminal...
by stefano
Sat Apr 17, 2021 8:59 pm
Forum: Other targets
Topic: Vector graphics clipart lib
Replies: 4
Views: 374

Re: Vector graphics clipart lib

:) I must think at something for those targets with an inverted display output like the Amstrad PCW models, the only idea I had is to issue a xorclga() after draw_profile().