Search found 19 matches

by Stefan
Sat Jan 27, 2024 4:07 pm
Forum: Sinclair ZX
Topic: A ZX81 Game Tutorial in z88dk, with source
Replies: 10
Views: 843

Re: A ZX81 Game Tutorial in z88dk, with source

First off, I'm really enjoying this tutorial, keep it up! Part 5, and today I will discuss how to end the game when the player touches a star. 4) game_over = bpeek(addr+1) == 0x17; So, we check if this address (addr+1) has 0x17 (as you might remember, 0x17 means the '*' character) in it, and if it d...
by Stefan
Sat Feb 11, 2023 10:55 am
Forum: Sinclair ZX
Topic: Reading the Kansas City tape format
Replies: 6
Views: 1328

Re: Reading the Kansas City tape format

stefano wrote: Fri Feb 10, 2023 10:18 pm SAM Coupè (this latter one required a bit of slowdown)
Is this maybe because it’s SAM Coupé’s evil twin? =D
by Stefan
Tue Nov 29, 2022 10:48 pm
Forum: Misc
Topic: alignas
Replies: 2
Views: 1070

Re: alignas

alignas is implemented by SDCC - it's value however can only be 0 or 1 - see mailing list over on sourceforge.
And even for alignas, SDCC does AFAIK currently not support alignment
other than 0 or 1.
by Stefan
Sun Nov 13, 2022 4:03 pm
Forum: Sinclair ZX
Topic: calc month length
Replies: 9
Views: 1249

Re: calc month length

What are you trying to achieve with a one-liner? Unless you are writing source code on your target platform I would at least make it a bit more friendly on the eyes: return 30 + ( month % 2 && ( month <= 7 ) ) + ( !( month % 2 ) && ( month > 7 ) ) - ( ( 2 - isleapyear ) * ( month == ...
by Stefan
Sun Feb 13, 2022 10:35 pm
Forum: Sinclair ZX
Topic: link about Disciple and +D
Replies: 30
Views: 10111

Re: link about Disciple and +D

Perhaps the order the tracks and sides are stored in is different comparing one file type to another? Even if the layout on the original disks is still the same? I think that that you are hitting the nail on the head. It is not the disk interface that is causing the difference, but the internal lay...
by Stefan
Sun Feb 13, 2022 9:57 pm
Forum: Sinclair ZX
Topic: link about Disciple and +D
Replies: 30
Views: 10111

Re: link about Disciple and +D

Just checked the plus d disassembly , it is also using tracks 0 to 3 of the first side for the directory. unidos also uses tracks 0 to 3 of the first side for the directory. If you open your mgt image with Fuse with +D connected and boot (G+DOS2A), CAT 1 shows: files 1 - 16 files 25 - 26 files 28 - ...
by Stefan
Sun Feb 13, 2022 4:02 pm
Forum: Sinclair ZX
Topic: link about Disciple and +D
Replies: 30
Views: 10111

Re: link about Disciple and +D

The DISCiPLE, +D and SAM Coupé all use the same format for their default DOS, tracks 0 - 3 of side 0. They are interchangeable. - DISCiPLE disassembly - samdos disassembly The DISCiPLE was MGT's first disk interface for the ZX Spectrum, you could use any disk drive with, single sided, double sided, ...
by Stefan
Tue May 11, 2021 8:41 pm
Forum: Sinclair ZX
Topic: SAM Coupé AY emulation
Replies: 6
Views: 3945

Re: SAM Coupé AY emulation

Nice! The AY playback code is ancient and can probably be improved. One thing that popped up some time ago was a reference by Simon N. Goodwin in his book ' Beep to Boom: The Development of Advanced Runtime Sound Systems for Games ' stating that the SAA1099 has a logarithmic volume just like the AY....
by Stefan
Tue May 11, 2021 3:34 pm
Forum: Sinclair ZX
Topic: SAM Coupé AY emulation
Replies: 6
Views: 3945

Re: SAM Coupé AY emulation

Just checked, its pretty much identical. I've pasted a more "human friendly" version here. I'll refrain from updating the WoS page directly and relocking the download. :-) High byte is octave - so is in range 07 through 00, the low byte is the tone: ; 0x0000 defw 0x07ff defw 0x07ff defw 0x...
by Stefan
Tue May 11, 2021 1:30 pm
Forum: Sinclair ZX
Topic: SAM Coupé AY emulation
Replies: 6
Views: 3945

Re: SAM Coupé AY emulation

I've extracted the following table from the routine used for the "converted" Signal demo on Fred 24B from file "sf speccy" - I hope I'm reading my code correctly since the table is a bit smaller than 8k, but the build up of the table looks reasonable.
by Stefan
Wed Jan 15, 2014 11:23 pm
Forum: z88dk-developers
Topic: [z88dk-dev] z80asm gccmake.bat missing -I lib?
Replies: 2
Views: 3581

Great, I see it's been fixed - quick service :-) The -Wall addition to gccmake.bat is throwing -Wcomment warnings on z80asm srcfile.c and srcfile.h which has a a lot of open comments /* without closing comments. OK, so that's been fixed - thanks. I'm now experimenting with getting binaries built fr...
by Stefan
Sat Jan 11, 2014 12:42 am
Forum: z88dk-developers
Topic: [z88dk-dev] z80asm gccmake.bat missing -I lib?
Replies: 2
Views: 3581

Great, I see it's been fixed - quick service :-) The -Wall addition to gccmake.bat is throwing -Wcomment warnings on z80asm srcfile.c and srcfile.h which has a a lot of open comments /* without closing comments. ------------------------------------------------------------------------------ CenturyLi...
by Stefan
Fri Jan 10, 2014 11:38 pm
Forum: z88dk-developers
Topic: [z88dk-dev] z80asm gccmake.bat missing -I lib?
Replies: 2
Views: 3581

[z88dk-dev] z80asm gccmake.bat missing -I lib?

Hi, I was a SAM Coup? Z80 coder in the nineties and am now working in a team creating accounting software with Progress OpenEdge. I feel I've missed a few steps between hard core Z80 (I wrote the SAM Coup? MOD player ) and what I'm currently doing (high level database language stuff), so I am lookin...
by Stefan
Mon Dec 23, 2013 12:46 pm
Forum: Bug reports
Topic: ZX81: Missing code or jump to wrong position???
Replies: 17
Views: 18235

It wouldn't happen to be this part in cli.c?

Code: Select all

no_param:
        pop hl         ; cleanup stack
        ld (hl), 0              ; return empty string
        ret
Does the intermediate assembled version show anything else referencing the address?
Can you trap changes to the address with a debugger?
by Stefan
Sat Dec 14, 2013 1:41 pm
Forum: z88dk-developers
Topic: [z88dk-dev] Placing Development Code in CVS
Replies: 7
Views: 6984

Interfaces for standard C linkage and C callee linkage will then appear in their own files: ============= HeapRealloc_callee: pop hl pop bc pop de ex (sp),hl jp asm_HeapRealloc AND: HeapRealloc: pop af pop bc pop de pop hl push hl push de push bc push af jp asm_HeapRealloc ============= The cost is...
by Stefan
Mon Dec 02, 2013 11:28 am
Forum: Windows
Topic: Nightly Windows build contains non-Windows files
Replies: 4
Views: 10000

That's a weird one, it looks like there was an "x11" folder at one point in time that was replaced with X11. I've now deleted the local copy and hopefully it won't show up again. I saw the rename in CVS but did not match that to the contents of x11 and X11 both existing... it was the only...
by Stefan
Mon Dec 02, 2013 11:26 am
Forum: Windows
Topic: Nightly Windows build contains non-Windows files
Replies: 4
Views: 10000

Curious about the discussion: is there a thear I could peep in ? :) Sure: Cross platform development - http://www.worldofspectrum.org/forums/showthread.php?t=45686 Collision Detection in SP1 - http://www.worldofspectrum.org/forums/showthread.php?t=45569 Documentation for SP1 for Z88DK? - http://www...
by Stefan
Fri Nov 29, 2013 10:38 pm
Forum: Windows
Topic: Nightly Windows build contains non-Windows files
Replies: 4
Views: 10000

Nightly Windows build contains non-Windows files

Sparked by all the recent z88dk discussion on WoS I decided to have a quick look. I downloaded the nightly windows build and while unzipping got several warnings "Destination folder already contains processed file. Would you like to replace the existing file" z88dk\include\X11\CVS contains...