Search found 1708 matches

by dom
Thu Jul 29, 2021 8:24 pm
Forum: Other targets
Topic: Coleco Adam EOS binary?
Replies: 7
Views: 163

Re: Coleco Adam EOS binary?

Thanks for the examples and headstart, you made it very easy to bring it all together. This evening I've committed support for -subtype=adam under the +coleco target. Generated programs can make use of the full 64k RAM of the machine. The only EOS function that's supported by z88dk at the moment is ...
by dom
Wed Jul 28, 2021 7:53 pm
Forum: Sinclair ZX
Topic: Colossal Cave was.. colossal :|
Replies: 4
Views: 37

Re: Colossal Cave was.. colossal :|

by involving sdcc (-compiler=sdcc -SO3 --max-allocs-per-node400000): I admire your patience, how long did take? Looking at the source it seems to be mostly text which would compress fairly well, but obviously not so well when every bit of text is prefixed by a puts() call. Using compression, Darwin...
by dom
Wed Jul 28, 2021 8:24 am
Forum: Other targets
Topic: Coleco Adam EOS binary?
Replies: 7
Views: 163

Re: Coleco Adam EOS binary?

That's brilliant - after inserting the DDP it just auto boots? The missing bits are: 1. Config file 2. Autogenerating the bootstrap 3. Some appmake magic Bonus missing bit: 4. EOS library for console in/out So config file: SUBTYPE adam -Cz+adam -startup=2 Generating the bootstrap: We're passing thro...
by dom
Tue Jul 27, 2021 7:47 am
Forum: Other targets
Topic: Coleco Adam EOS binary?
Replies: 7
Views: 163

Re: Coleco Adam EOS binary?

The Adam is a subtype of the +cpm target so there's no EOS support.

I'm taking things easy at the moment, so I'm not planning to work on it from scratch, but I'll happily take code donations and fix things up.
by dom
Sat Jul 24, 2021 7:10 pm
Forum: Misc
Topic: Nightly server not working?
Replies: 1
Views: 53

Re: Nightly server not working?

The server is accessible via a connection which seems to be failing. It’s currently disconnecting every few minutes and has degraded to only a 700kbit upload. I’m trying to convince my ISP to send an Openreach engineer to investigate so we’ll see how that goes. I should be able to provide an alterna...
by dom
Wed Jun 30, 2021 8:10 pm
Forum: Other targets
Topic: Bold text on the Z88
Replies: 1
Views: 170

Re: Bold text on the Z88

Normally at this point I'd just recommend using the gencon and <conio.h>. However I've not implemented it for the z88.

You should be able to output all VDU codes directly though so you'll get the grey, minicaps etc
by dom
Sat Jun 26, 2021 12:35 am
Forum: CP/M, FLOS and OS related
Topic: Having some trouble with fopen on cp/m target.
Replies: 6
Views: 271

Re: Having some trouble with fopen on cp/m target.

Sorry there was a massive "typo" on that page, -pragma-define:CLIB_OPEN_FILE=10 should be -pragma-define:CLIB_OPEN_MAX=10

Tell me about the argv issue - there's been some odd behaviour with that lately so I want to know what's going on for you.
by dom
Fri Jun 25, 2021 8:27 am
Forum: CP/M, FLOS and OS related
Topic: Having some trouble with fopen on cp/m target.
Replies: 6
Views: 271

Re: Having some trouble with fopen on cp/m target.

Yup, there's a default limit of 3 FCBs: https://github.com/z88dk/z88dk/wiki/Pla ... ile-access - that option configures the number of "fds"

If you use more than 10 FILE handles, then you'll need to tune that as well, CLIB_FOPEN_MAX is the pragma name for configuring that size.
by dom
Tue Jun 22, 2021 11:01 am
Forum: Sinclair ZX
Topic: Tight memory map with IM2 table
Replies: 11
Views: 458

Re: Tight memory map with IM2 table

Quite right, but surely it should be flagged with an error rather than generating clearly incorrect code? The example works if the wpoke() call gets the correct value. It would be nice, but I guess it's the spectre of "undefined behaviour" where anything can happen. I'll raise an upstream...
by dom
Tue Jun 22, 2021 10:24 am
Forum: Sinclair ZX
Topic: Tight memory map with IM2 table
Replies: 11
Views: 458

Re: Tight memory map with IM2 table

This is interesting: // zcc +zx -vn -compiler=sdcc -clib=sdcc_iy main.c -o main.bin -startup=1 -create-app --list --c-code-in-asm #include <stdio.h> void main() { void *val1 = ( (void*)0xf5f5 ); void *val2 = val1 + 1; printf("Val2 is %p\n", val2); } On a Spectrum that prints "Val2 is...
by dom
Mon Jun 21, 2021 9:02 pm
Forum: Sinclair ZX
Topic: Tight memory map with IM2 table
Replies: 11
Views: 458

Re: Tight memory map with IM2 table

$5d00/23808 seems a bit low - I think BASIC starts at 23760?

Another issue is that you've pointed im2 into contented memory so you'll get the snow effect.
by dom
Sat Jun 19, 2021 6:50 pm
Forum: Sinclair ZX
Topic: Memory banking in 128K model
Replies: 5
Views: 421

Re: Memory banking in 128K model

If you’re using classic then take a look at the example linked from this section: https://github.com/z88dk/z88dk/wiki/Mor ... -and-zsdcc
by dom
Fri Jun 18, 2021 10:34 am
Forum: Other targets
Topic: Creating a generic interpreter and memory management
Replies: 1
Views: 153

Re: Creating a generic interpreter and memory management

I don't think there's a C example. But from looking around at various home-brew hardware, the de-facto standard seems to be a variant of the Nascom flavour of Microsoft BASIC, eg here: https://github.com/feilipu/NASCOM_BASIC_4.7 It's easy to port to a new machine and add commands to allow interfacin...
by dom
Thu Jun 17, 2021 6:44 am
Forum: Other targets
Topic: S100 - hello world not working.
Replies: 11
Views: 413

Re: S100 - hello world not working.

Oh thank goodness!

Given that you said it was working on the rc2014 it was a bit of a head scratcher.

Does the download problem clear up the other issue as well?
by dom
Wed Jun 16, 2021 10:44 am
Forum: Other targets
Topic: S100 - hello world not working.
Replies: 11
Views: 413

Re: S100 - hello world not working.

It's was worth a shot.

I have to admit most of the testing I've been doing is on CP/M 2.2 rather than 3 so I wonder if we're doing something in the crt0 that isn't right. Let me try to find a version of 3 running somewhere and try it out.
by dom
Tue Jun 15, 2021 8:09 am
Forum: Other targets
Topic: S100 - hello world not working.
Replies: 11
Views: 413

Re: S100 - hello world not working.

Thanks for that, I get the feeling that this isn't really a problem with printf, but more likely a machine setup issue. I spot this comment: "Has about 46k of ram" which gets to thinking about the stack pointer - by default we don't change the stack pointer on entry so I'm wondering if on ...
by dom
Mon Jun 14, 2021 10:20 pm
Forum: Other targets
Topic: S100 - hello world not working.
Replies: 11
Views: 413

Re: S100 - hello world not working.

That is odd, it should "just work".

I'm not sure what permutations you've tried, but if you just do: zcc +cpm -clib=8080 hello.c -create-app does that work?

Either way, could you create a GitHub issue with the generated binaries and the .map file and I'll take a look.
by dom
Sat Jun 12, 2021 8:15 am
Forum: CP/M, FLOS and OS related
Topic: (Classic) New target: Bondwell Model 2
Replies: 11
Views: 1218

Re: (Classic) New target: Bondwell Model 2

I don't think the CP/M library contains the ANSI driver - just in case the bdos implements vt100 codes itself.

So, you'll need to add @stdio/ansicore.lst to target/bondwell2/bw.lst and compile/add to crt0: -pragma-define:CLIB_ANSITERMINAL_BRIDGE=1 to bridge it over to the generic-console renderer.
by dom
Sun Jun 06, 2021 9:17 pm
Forum: MSX, SVI, M5 and Sega Master System
Topic: PSG and 1-bit on sms and gamegear
Replies: 8
Views: 518

Re: PSG and 1-bit on sms and gamegear

That’s great. They are working in examples/sound/fx.c - can you try compiling and running that example first of all so we have a known good starting point?
by dom
Sun Jun 06, 2021 7:48 pm
Forum: MSX, SVI, M5 and Sega Master System
Topic: PSG and 1-bit on sms and gamegear
Replies: 8
Views: 518

Re: PSG and 1-bit on sms and gamegear

By emulate, I mean it sets up a tone on channel one and then adjusts the volume.

I've additionally tested examples/sound/synthdemo and it's also making sound. So it looks like the core library is working as it should, so it may well be an emulator issue or whatever code you're using to create sounds.
by dom
Sun Jun 06, 2021 7:32 pm
Forum: Other targets
Topic: TRS80 model 3 sound
Replies: 8
Views: 406

Re: TRS80 model 3 sound

To take the address of a function it's pretty standard: ``` extern int test(); int main() { void *ptr = test; .... } ``` For what features are available for which target, <features.h> is useful and is driven by this spreadsheet: https://github.com/z88dk/z88dk/blob/master/doc/features/features.csv
by dom
Sun Jun 06, 2021 7:28 pm
Forum: MSX, SVI, M5 and Sega Master System
Topic: PSG and 1-bit on sms and gamegear
Replies: 8
Views: 518

Re: PSG and 1-bit on sms and gamegear

I've just tried compiling examples/sound/fx.c for +sms. I ran it with emulicious and sound was emitted. For machines with a SN76489 (see features.h and that spreadsheet I created: https://github.com/z88dk/z88dk/blob/master/doc/features/features.csv) Stefano implemented some code that emulates 1 bit ...
by dom
Sun Jun 06, 2021 7:02 pm
Forum: Bug reports
Topic: possible signed vs unsigned issue
Replies: 1
Views: 284

Re: possible signed vs unsigned issue

Looks like that was codegen bug, I've raised a GitHub issue here: https://github.com/z88dk/z88dk/issues/1805 and also submitted a fix for it so it should be available in the next nightly.

Thanks for the report.
by dom
Fri May 21, 2021 8:58 am
Forum: Other targets
Topic: [Microbee] Which mode is 160x48?
Replies: 5
Views: 311

Re: [Microbee] Which mode is 160x48?

> The MicroBee port supports three graphics variants. Low-resolution (up-to 160x48) is built in by default. This form cooperates with the generic console and allows the use of custom fonts and UDGs. Lores graphics in z88dk means that "block graphics" are available these typically divide a ...
by dom
Sat May 15, 2021 12:10 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?

There's HAVE_TIME which indicates a fully working <time.h>, HAVE_CLOCK might be useful in terms of being able to get hold of a tick counter though. I was thinking about graphics resolutions, but couldn't think of a way to do it sensibly! Many targets have multiple screen modes, and sometimes a choic...