Search found 1762 matches

by dom
Sun Oct 24, 2021 11:36 am
Forum: Amstrad
Topic: .dsk images containing multiple files
Replies: 5
Views: 229

Re: .dsk images containing multiple files

It’s a great feature. Thank you!

I’ll spend some time in a week or so getting banked programs working for C compilations.
by dom
Sat Oct 23, 2021 9:09 pm
Forum: CP/M, FLOS and OS related
Topic: CP/M 3.0 I8080 is FREAD broken ?
Replies: 6
Views: 108

Re: CP/M 3.0 I8080 is FREAD broken ?

Great. It should be there with the latest pull - I added the functionality on 25th April.

You’ll also benefit from the optimisations @feilipu has be doing lately.
by dom
Sat Oct 23, 2021 7:42 am
Forum: CP/M, FLOS and OS related
Topic: CP/M 3.0 I8080 is FREAD broken ?
Replies: 6
Views: 108

Re: CP/M 3.0 I8080 is FREAD broken ?

I only implemented fread for 8080 in April so if you’ve not updated recently then that might be the problem.
by dom
Sat Oct 23, 2021 7:41 am
Forum: CP/M, FLOS and OS related
Topic: FREAD may do be doing undocumented feature
Replies: 4
Views: 71

Re: FREAD may do be doing undocumented feature

If you add “b” to the fopen mode, so “rb“ then reading should be verbatim and quicker.
by dom
Wed Oct 20, 2021 5:50 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Hardware collision detection bit
Replies: 8
Views: 232

Re: Hardware collision detection bit

Regardless, it seems sensible to capture the status register since most BASIC ROMs either store it, or pass it on to any user interrupt routines.

So, it's now available in extern unsigned char _tms9918_status_register; which for want of a better place is defined in <msx.h>
by dom
Tue Oct 19, 2021 9:29 pm
Forum: Misc
Topic: Is the disassembler discontinued
Replies: 9
Views: 393

Re: Is the disassembler discontinued

cborn wrote: Tue Oct 19, 2021 9:18 pmi work with linux debian 10 which natively uses gcc 8.3.0,posix.
Wonderful, thank you for the hint. I can now see it and can verify that I've fixed it as well.
by dom
Tue Oct 19, 2021 8:56 pm
Forum: Amstrad
Topic: .dsk images containing multiple files
Replies: 5
Views: 229

Re: .dsk images containing multiple files

The normal tools for this something like cpmtools combined with libdsk.

The disc image generating code with appmake is capable of writing multiple files to a disc image: the +3 generator does it, it's just never really been needed before.

Patches and enhancements are accepted!
by dom
Tue Oct 19, 2021 8:44 pm
Forum: Misc
Topic: Is the disassembler discontinued
Replies: 9
Views: 393

Re: Is the disassembler discontinued

I rolled back to March to see if I could reproduce this but unfortunately not. Given that there's been no changes since then I'm not too surprised about that. I've spent a while staring at this line: BUF_PRINTF("%-8s%s,%s", "ld", handle_register8(state, y,opbuf1,sizeof(opbuf1)), ...
by dom
Tue Oct 19, 2021 7:28 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Hardware collision detection bit
Replies: 8
Views: 232

Re: Hardware collision detection bit

Oh, that is a bit poor isn't it!

Sounds like we need to cache it and provide a couple of helper functions to access it. It's trivial to do for most of the targets, though I can't easily spot how to do it for an MSX rom.
by dom
Tue Oct 12, 2021 8:12 pm
Forum: Sinclair ZX
Topic: Source compiles or not depending on file name?
Replies: 5
Views: 281

Re: Source compiles or not depending on file name?

I forgot to mention, this was fixed a couple of days ago.
by dom
Mon Oct 11, 2021 11:09 pm
Forum: Misc
Topic: Is the disassembler discontinued
Replies: 9
Views: 393

Re: Is the disassembler discontinued

OK. Thanks. I'll investigate my version further and report back...perhaps I need a refresh? I don't think it's ever been broken which is odd. % cat test.asm ld (ix+10),2 ld (ix-20),$dd % hexdump test.bin 0000000 dd 36 0a 02 dd 36 ec dd % z88dk-dis test.bin ld (ix+$0a),$02 ;[0000] dd 36 0a 02 ld (ix...
by dom
Mon Oct 11, 2021 7:12 pm
Forum: Misc
Topic: Is the disassembler discontinued
Replies: 9
Views: 393

Re: Is the disassembler discontinued

Which disassembler are you referring to? I've just checked z88dk-dis and it seems to be handling these correctly.
by dom
Sun Oct 10, 2021 2:52 pm
Forum: Project Activity
Topic: [changes] 07/10/2021
Replies: 4
Views: 405

Re: [changes] 07/10/2021

Very helpful, thanks. A small error that I have found in the list: the standard Galaksija target (__GAL__) should not have PSG AY sound, while the improved Galaksija Plus model (__GALPLUSHIRES__) should, their values in the list are inverted. Sorted, if that's the only mistake in 3000+ entries I'll...
by dom
Sat Oct 09, 2021 6:04 pm
Forum: Sinclair ZX
Topic: Function pointers in SDCC
Replies: 2
Views: 157

Re: Function pointers in SDCC

If you write this:

Code: Select all

typedef void (*codeset_function_t)( void );
it will parse/compile correctly in both compilers.
by dom
Sat Oct 09, 2021 6:02 pm
Forum: Sinclair ZX
Topic: Source compiles or not depending on file name?
Replies: 5
Views: 281

Re: Source compiles or not depending on file name?

That's a good one - I was wondering why this never came up before, and it's due to the C_LINE directives that have been added recently. I did think they were just strings, but z80asm is obviously trying to parse them in some way. I've raised an issue here: https://github.com/z88dk/z88dk/issues/1883 ...
by dom
Fri Oct 08, 2021 5:03 pm
Forum: Feature Requests
Topic: search formats ?
Replies: 1
Views: 184

Re: search formats ?

To be honest, I wouldn't recommend using the inbuilt search feature - all pages are open to google/bing/whatever so just use your regular search engine -just stick a z88dk or site:z88dk.org qualifier to the search query.
by dom
Fri Oct 08, 2021 3:39 pm
Forum: Project Activity
Topic: [changes] 07/10/2021
Replies: 4
Views: 405

Re: [changes] 07/10/2021

I don't know what state your system is in, so it's probably easiest to start afresh.

Instructions are here: https://github.com/z88dk/z88dk/wiki/ins ... inux--unix

It may be easier to use a snap installation: https://github.com/z88dk/z88dk/wiki/Snap-usage
by dom
Thu Oct 07, 2021 9:15 pm
Forum: Project Activity
Topic: [changes] 07/10/2021
Replies: 4
Views: 405

[changes] 07/10/2021

This update is very much delayed. I've been suffering from an extended meh period so really haven't felt like doing much. Winter is coming though so things might change. Regardless, there's been a few changes over the past 5 months or so. Docker image discontinued Dockerhub made it a lot harder for ...
by dom
Thu Oct 07, 2021 8:21 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 11
Views: 627

Re: Arkos Tracker 2 in z88dk

I think I have something working - some sound is coming out at the very least - it doesn't sound particularly tuneful, but it might give some more hints. - The player is self modifying/contains variables so needs to be placed into RAM - I just changed the section to be data_user rather than code_use...
by dom
Thu Oct 07, 2021 6:35 pm
Forum: Sinclair ZX
Topic: is a 128/48k test avilable
Replies: 13
Views: 471

Re: is a 128/48k test avilable

I created a short example from your snippet: #include <stdio.h> static __at(23672) unsigned long FRAMES ; // outside 'main' is that 'static' ?? void zx_time(){ // do the longs need pointers ?? TODO make zx_real_time() or zx_rtime() unsigned long clock; // /50= unsigned long clk50; // clk50= clock % ...
by dom
Wed Oct 06, 2021 10:41 pm
Forum: Sinclair ZX
Topic: is a 128/48k test avilable
Replies: 13
Views: 471

Re: is a 128/48k test avilable

I'm sorry I was wrong. Due to a historical quirk that's not the name of the header (even though it should be), it's actually <spectrum.h> In the spirit of teaching fishing: 1. Not everything is documented nicely on the wiki 2. Not everything is documented nicely in header files So it's good to learn...
by dom
Wed Oct 06, 2021 9:04 pm
Forum: Sinclair ZX
Topic: is a 128/48k test avilable
Replies: 13
Views: 471

Re: is a 128/48k test avilable

It should be available with either:

Code: Select all

zcc +zx -vn  zxsv05h.c -o zxsv05h -lndos -create-app -lm

-or-

zcc +zx -vn  zxsv05h.c -o zxsv05h -lndos -create-app -lm -compiler=ddcc
by dom
Wed Oct 06, 2021 9:33 am
Forum: Sinclair ZX
Topic: is a 128/48k test avilable
Replies: 13
Views: 471

Re: is a 128/48k test avilable

There's a couple of ways to do this: #include <arch/zx.h> // 0 = 48k // 1 = 128k // 2 = TS2068 extern int zx_type(); // 0 - unknown // 1 = 48k // 2 = 128/+2 // 3 = +2a/pentago // 4 = +3 // 5 = +2a or +3 fixed for games // 6 = TS2068 extern int zx_model(); // 0 = Issue 1,2 // 1 = Issue 3 or higher ex...
by dom
Mon Oct 04, 2021 7:50 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 11
Views: 627

Re: Arkos Tracker 2 in z88dk

In C code I do the following: extern void PLAYER_ARKOS_INIT (unsigned int * songdata, unsigned int subSong); extern void PLAYER_ARKOS_PLAY (); extern void PLAYER_ARKOS_STOP (); ... The assembler file has the following code: SECTION code_user PUBLIC _PLY_AKM_INIT PUBLIC _PLY_AKM_STOP PUBLIC _PLY_AKM...
by dom
Sun Oct 03, 2021 2:40 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 11
Views: 627

Re: Arkos Tracker 2 in z88dk

Because we've got WYZ and Vortex players in the library (for multiple targets) a while ago I was looking at including Arkos as well and getting it working across more exotic machines. However, looking at the downloaded archive I just found it really confusing what player code needed to be included s...