Search found 75 matches

by pjshumphreys
Sun Apr 14, 2024 8:47 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: MSX Malloc on memory > 64KB
Replies: 12
Views: 142

Re: MSX Malloc on memory > 64KB

Is that available anywhere for me to have a look at? Sure. I've probably linked to this project before but I've migrated my stuff to sourceforge now. Ignore the silly function names. When I was coming up with names for them they were the first thing that came to mind and they made me chuckle. https...
by pjshumphreys
Sun Apr 14, 2024 8:18 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: MSX Malloc on memory > 64KB
Replies: 12
Views: 142

Re: MSX Malloc on memory > 64KB

The __banked calls available for +gb, +msx, +zx and +cpc use an always available trampoline with a 32 bit address following. There's a secondary stack to keep track of the originating page. It's pretty seamless which is nice, though does depend on the common and library routines fitting within the ...
by pjshumphreys
Sun Apr 14, 2024 2:53 pm
Forum: Sinclair ZX
Topic: DSKTOOL - A tool for creating Spectrum +3 game loaders
Replies: 4
Views: 111

Re: DSKTOOL - A tool for creating Spectrum +3 game loaders

Same. Something that'll be useful for future projects. :)
by pjshumphreys
Sun Apr 14, 2024 2:43 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: MSX Malloc on memory > 64KB
Replies: 12
Views: 142

Re: MSX Malloc on memory > 64KB

Speaking of, if a have a char *__far string, how can I (s)printf it? Should I copy it to a near address and then print it? I've found that storing code and static variables in paged memory is easier to work with than the stack or heap, because of this kind of need to copy data between pages takes e...
by pjshumphreys
Thu Apr 11, 2024 6:18 pm
Forum: Sinclair ZX
Topic: zx81 filesystem interface with commodore 1541 drive (zx1541)
Replies: 7
Views: 163

Re: zx81 filesystem interface with commodore 1541 drive (zx1541)

Cool, thanks. I'm not working on any z80 related projects at present. I just like to check this forum every now and again for interesting stuff. But now I might dig out my zx1541 and do some tests. For reference, the version I have is the same as the one on this thread: https://sinclairzxworld.com/v...
by pjshumphreys
Thu Apr 11, 2024 4:24 pm
Forum: Sinclair ZX
Topic: zx81 filesystem interface with commodore 1541 drive (zx1541)
Replies: 7
Views: 163

Re: zx81 filesystem interface with commodore 1541 drive (zx1541)

I don't actually own a real 1541 drive. I use a sd2iec device instead with the computers I own. My understanding is on cbm-dos you can read files byte-by-byte, write files byte-by-byte or (in theory) seek disk between 128 byte blocks. This comes from my experience working with the file io functions ...
by pjshumphreys
Sun Apr 07, 2024 11:08 pm
Forum: Sinclair ZX
Topic: zx81 filesystem interface with commodore 1541 drive (zx1541)
Replies: 7
Views: 163

Re: zx81 filesystem interface with commodore 1541 drive (zx1541)

Thanks Dom. Sorry for being a pain (again) I wasn't aware the zx81 target already has support for the ZX1541. I was just thinking about talking to the interface via the zx_line function. Can this support in z88dk let you do byte by byte file reading? The rom on the interface only has functionality t...
by pjshumphreys
Thu Apr 04, 2024 2:24 am
Forum: Sinclair ZX
Topic: zx81 filesystem interface with commodore 1541 drive (zx1541)
Replies: 7
Views: 163

zx81 filesystem interface with commodore 1541 drive (zx1541)

Hi all, I've seen recently folks discussing how to access files on an SD card with a ZX81. I've had some luck doing this with the ZX1541 interface and a SD2IEC device (such as from https://www.tfw8b.com/product/sd2iec-vic20-c64c-c128-light-grey/ ). Pre built ZX1541 inferfaces crop up on sellmyretro....
by pjshumphreys
Mon Feb 05, 2024 10:51 pm
Forum: Amstrad
Topic: Relocation Table
Replies: 1
Views: 422

Re: Relocation Table

According to https://github.com/z88dk/z88dk/wiki/Tool---z80asm---command-line the z80asm assembler has an -R option to generate relocatable code. You should be able to pass through this parameter to z80asm from the zcc compiler frontend using -Ca[option] (https://github.com/z88dk/z88dk/wiki/Tool---z...
by pjshumphreys
Fri Apr 07, 2023 9:17 am
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

Maybe its easy it its use?
I don't know. Although as I said before, the author of that one is still active on github so will likely be available to respond to questions. He is still adding commits to the project as of last month.
by pjshumphreys
Thu Apr 06, 2023 10:24 pm
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

On further investigation, Batch.au3 in that WAV2AY_SRC.zip file looks like some kind of scripting language code that prints out z80 assembly to do the exomizer decompression. Weird
by pjshumphreys
Thu Apr 06, 2023 9:57 pm
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

Yeah, based upon what you say this wav2ay tool doesn't seem like a 'batteries included' type of thing. I did see there's freebasic source code at https://worldofspectrum.net/pub/sinclair/tools/pc/WAV2AY_SRC.zip. Is that useful to you? Otherwise, that other wav2ay tool I found on github will also con...
by pjshumphreys
Thu Apr 06, 2023 11:26 am
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

Also, would it be worth asking the exomizer devs whether they have direct support for z88dk compiles in some form? It's possible they might already in some way.
by pjshumphreys
Thu Apr 06, 2023 11:11 am
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

This wav2ay project? https://github.com/EdouardBERGE/wav2ay I can't find any references to exomizer in that one. It doesn't seem to be part of wav2ay itself. I've found decompressing with zx7 is fairly easy and that (de)compressor is already part of z88dk's toolset. Would using that instead be an op...
by pjshumphreys
Wed Apr 05, 2023 4:51 pm
Forum: Misc
Topic: exomizer
Replies: 11
Views: 2206

Re: exomizer

Doesn't exomizer do something similar to z88dk-zx7? I've briefly used exomizer with cc65 before but I wasn't aware it supports z80 machines. I'd find it interesting to see how the two compressors compare.
by pjshumphreys
Fri Mar 10, 2023 2:07 pm
Forum: Sinclair ZX
Topic: MSX CLOAD format
Replies: 2
Views: 1804

Re: MSX CLOAD format

Very cool! :)
by pjshumphreys
Sat Jan 14, 2023 2:23 am
Forum: Other targets
Topic: I'm creating CPM BIOS in C
Replies: 8
Views: 1183

Re: I'm creating CPM BIOS in C

very nice!
by pjshumphreys
Sun Dec 18, 2022 12:32 am
Forum: Misc
Topic: Could someone take another look at my PR please?
Replies: 0
Views: 6483

Could someone take another look at my PR please?

I updated the changes I made to https://github.com/z88dk/z88dk/pull/2104 to use utstring, but it seems the build process previously failed due to the chocolatey package manager having some kind of problem. After I've rebased my code today from the latest upstream master the build process seems happy...
by pjshumphreys
Thu Oct 27, 2022 2:22 pm
Forum: Misc
Topic: Misc functions
Replies: 8
Views: 1202

Re: Misc functions

I thought I'd made that available to every z80 target?
Oh cool. I only looked when I first started using it. I tried again recently and it didn't work for me, but I guess that's because I was trying to compile for 8080.
by pjshumphreys
Thu Oct 27, 2022 12:31 am
Forum: Misc
Topic: Misc functions
Replies: 8
Views: 1202

Re: Misc functions

Is it relevant to talk about other target specific libraries in this thread? Two I know of are the AsmCall function that's part of asmlib for the msx target and the pcx image decoding functionality that's part of sgtools for the c128 target. Both of these would be good to have all targets. It's not ...
by pjshumphreys
Tue Oct 25, 2022 1:20 pm
Forum: Other targets
Topic: Cassette tape based file options?
Replies: 56
Views: 6172

Re: Cassette tape based file options?

You're right. I do really like that :)
by pjshumphreys
Mon Oct 24, 2022 2:44 pm
Forum: Misc
Topic: Building sdcc projects with z88dk
Replies: 6
Views: 1026

Re: Building sdcc projects with z88dk

According to https://github.com/z88dk/z88dk/wiki/Tool---zcc you can just run the preprocessor with the "-E" command line option
by pjshumphreys
Mon Oct 24, 2022 11:04 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Developing for MSX-DOS2 and >64kb
Replies: 56
Views: 23630

Re: Developing for MSX-DOS2 and >64kb

msxdos2 definitely had new support for sub directories though. That would make a larger capacity drive more practicable.
by pjshumphreys
Mon Oct 24, 2022 10:46 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Developing for MSX-DOS2 and >64kb
Replies: 56
Views: 23630

Re: Developing for MSX-DOS2 and >64kb

Am I remembering rightly that msxdos2 adds support for fat16 rather than just fat12 on floppies? If that's true then maybe much of the benefit of msxdos2 is with larger capacity mass storage devices such as ide hard drives or compact flash.
by pjshumphreys
Mon Oct 24, 2022 9:10 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Developing for MSX-DOS2 and >64kb
Replies: 56
Views: 23630

Re: Developing for MSX-DOS2 and >64kb

Looking at the msxdos1 situation, there don't seem to be any msx1 machines that came with msxdos1. The first machine to come with msxdos of any kind was the National CF-3300, which was an msx2 machine. I was able to boot msxdos1 on an emulated toshiba hx-10 with and attached panasonic FS-FD1A disk d...