Search found 2176 matches

by stefano
Fri Jan 12, 2024 5:54 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

I've almost finished the list of the ZX Spectrum clones having a reasonably good emulation in CP/M mode. There's still a rebased CP/M by Kamill Karimov which runs on any Spectrum 128 but is somewhat limited. I'm leaving it behind because it will require rebased BDOS calls (6005h), and ORG to be posi...
by stefano
Thu Jan 11, 2024 1:48 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

I succeded in porting MBASIC (it's acting as a test case) to the Profi models on the PINIX CP/M.
mbasic_pinix.png
(screenshot taken before fixing the default color attributes values)

..and, still on the Profi, the KLUG CP/M.
(this one has been more difficult to track down)
mbasic_klug.png
by stefano
Wed Jan 10, 2024 2:52 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

Felix HC-2000 (and possibly HC-91). Display memory paging logic tracked here, too.
zxbasic2.png
by stefano
Tue Jan 09, 2024 1:29 pm
Forum: Sinclair ZX
Topic: Assembly code view
Replies: 7
Views: 1367

Re: Assembly code view

A very basic approach could be this. Suppose you are building "examples/console/tic.c": zcc +zx -lndos -create-app -a tic.c ren tic.c.asm t.asm (Edit t.asm ..) zcc +zx -lndos -create-app t.asm This is an easy starter for some early experiment, you still get the libraries linked in and pack...
by stefano
Mon Jan 08, 2024 6:35 pm
Forum: Sinclair ZX
Topic: Assembly code view
Replies: 7
Views: 1367

Re: Assembly code view

Using C compiled code and making it relocatable sadly has many other aspects to consider which make the jr topic less than relevant. There is a way for getting relocatable code (which you might not like, I'm afraid) or you could simply dig out the assembly source, use search/replace on an editor and...
by stefano
Mon Jan 08, 2024 2:21 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

The Quorum-128 has an extra memory paging register (80FDh) used to enable/disable write access to the background RAM.
zxbasic.png
by stefano
Fri Jan 05, 2024 1:03 pm
Forum: Announcements
Topic: z88dk v2.3 released
Replies: 9
Views: 5658

Re: z88dk v2.3 released

You probably did, but can I ask if you downloaded the right z88dk-src-2.3.tgz file ?

I'm asking because there is a possible confusion: "Do not download the autogenerated "Source code" files at the bottom - they are missing dependencies and won't compile correctly!"
by stefano
Thu Jan 04, 2024 9:28 pm
Forum: Sinclair ZX
Topic: Detecting any key press?
Replies: 3
Views: 691

Re: Detecting any key press?

you have also something in the core routines getk() Ia the universal way to do it, but it is very primitive. On many targets it won't stop the ruining program but will suffer for collisions in case of multiple keypresses. By the way a nonzero result means "any key". joystick() covers also ...
by stefano
Fri Dec 29, 2023 2:55 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

Disassembling a simple graphics demo for the Scorpion was the easiest way to begin. The video memory on the Scorpion is placed at $C000, no need to relocate VPEEK/VPOKE. zxs_basic_circle.png EDIT: the MBASIC experiments are a good intermediate step before touching the libraries. The Russian clones h...
by stefano
Fri Dec 29, 2023 8:46 am
Forum: Amstrad
Topic: Amstrad CP/M formats
Replies: 2
Views: 4279

Re: Amstrad CP/M formats

..and after getting most of this sorted out (especially the past work on the PCW format) I found this document: https://www.seasip.info/Cpm/amsform.html CPC system This simple system is used by CPC computers: If the first physical sector is 41h, the disc is in System format, ie: single sided, single...
by stefano
Thu Dec 28, 2023 5:27 pm
Forum: Amstrad
Topic: Amstrad CP/M formats
Replies: 2
Views: 4279

Re: Amstrad CP/M formats

In short, apparently the only missing disk format was the German "Vortex" one. I tested it on WinApe, putting the Vortex20 ROM on the upper slot #6, mounting the proper system disk and booting it with "|cpm". We now have a lot of target formats for the CPC, the ZX Spectrum and th...
by stefano
Fri Dec 22, 2023 11:28 am
Forum: Amstrad
Topic: Amstrad CP/M formats
Replies: 2
Views: 4279

Amstrad CP/M formats

I'll be editing this list to try tracking down the known CP/M formats for the Amstrad machines. The resulting configurations allow the file extraction from the RAW dumps of the disk images but are not enough to recreate the correct skew factor and sector numbering. Vortex CP/M . IMDU shows non-linea...
by stefano
Fri Dec 22, 2023 9:27 am
Forum: Sinclair ZX
Topic: SAM Coupe ProDOS Disk format
Replies: 1
Views: 1022

Re: SAM Coupe ProDOS Disk format

My "discovery" was well documented on the older Pro-DOS version. I think there are good possibilities to adapt the graphics library relying on the z88dk sections, it's probably way better than the trick I used on the Spectrum +3. @Dom, you can probably arrange it way more easily than me. T...
by stefano
Fri Dec 22, 2023 6:56 am
Forum: Sinclair ZX
Topic: +zx81 Noob Question About Libraries
Replies: 16
Views: 2201

Re: Noob Question About Libraries

IIRC EightyOne runs on WINE
by stefano
Thu Dec 21, 2023 4:24 pm
Forum: Sinclair ZX
Topic: Assembly code view
Replies: 7
Views: 1367

Re: Assembly code view

I *think* you get the final optimized code already. Sometimes those frequent PUSH / POP sequences give the feeling of absent optimization, you can try comparing the outputs with the normal build and a second one with "-O0", in example. Adding "-v" you will see the optimiser passe...
by stefano
Thu Dec 21, 2023 2:49 pm
Forum: Sinclair ZX
Topic: +zx81 Noob Question About Libraries
Replies: 16
Views: 2201

Re: Noob Question About Libraries

Dom, most of the Floating Point should be working since.. quite a few. The major problem was on the index registers but it is now partially addressed by intercepting and replacing the video interrupt handler also in text mode.

Also the ROM based FP implementation is now sightly improved/fixed.
by stefano
Thu Dec 21, 2023 2:03 pm
Forum: Sinclair ZX
Topic: SAM Coupe ProDOS Disk format
Replies: 1
Views: 1022

SAM Coupe ProDOS Disk format

The ProDOS, is just a good CP/M implementation for the SAM Coupe. After enough experiments to understand how the FD format should have been I discovered that it is 100% compatible with the Amstrad PCW 80T disks, its system disk has even the same heading on track#0 ! I'm inserting a basic configurati...
by stefano
Wed Dec 20, 2023 8:59 am
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

There are still a two or three CP/M formats for the Spectrum which I can't verify. They must wait. By the way one more target is in the supported formats lists. I noticed that the QUORUM emulator reads two disk formats, the already discovered Profi's KLUG CP/M but also also the HOBBIT CP/M disks ! A...
by stefano
Tue Dec 19, 2023 2:49 pm
Forum: Sinclair ZX
Topic: +zx81 Noob Question About Libraries
Replies: 16
Views: 2201

Re: Noob Question About Libraries

On the ZX81 you will miss everything explicitly as part of the so-called "newlib". Most of the remaining stuff *should* (could) work, I encourage you to experiment trying also examples in the subfolders (including zx81, graphics, console, clisp, but also something elsewhere, like in the Sp...
by stefano
Tue Dec 19, 2023 2:36 pm
Forum: Sinclair ZX
Topic: Flipping Bytes & Bits!
Replies: 11
Views: 3123

Re: Flipping Bytes & Bits!

If you can limit your code to blind computation, then we have "ticks", it is part of the z88dk kit. It is a modified CP/M emulator benchmarking the code for you. Optimizing the code for speed usually involves assembly. I suppose that most of the optimization attempts will be something like...
by stefano
Mon Dec 18, 2023 6:00 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

And at last a bit of luck !! The "Cobra" disk images available here: http://cobrasov.com/CoBra%20Project/cpm_comments-ro.html#C1 Are perfectly read from the FUSE emulated HC-2000 environment. I'd assume the two 3,5 inch disk formats are compatible. I noticed that the boot sectors *in some ...
by stefano
Mon Dec 18, 2023 3:57 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

Pull request opened for the HC-91 and HC-2000.
The trap was in the OS disks! On the HC-2000 the 720K format is supported by drive A only, the 5,25 inch format by drive B only.
Moreover support for drive B works properly only on the "Z80CCP" version of the HC-2000 CP/M system (CPMZ80.DSK).
by stefano
Mon Dec 18, 2023 1:59 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

The HC-91 and HC-2000 disk definitions for CPMTOOLS (finally!) On the HC-91 there's surely a waste with the byte-sized sector allocation... perhaps the CP/M BIOS for the HC-91 was initially designed for 40 tracks disks. # ZX HC-91 diskdef hc2000 seclen 512 cylinders 57 sectrk 9 heads 2 blocksize 204...
by stefano
Mon Dec 18, 2023 11:08 am
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

More experiments on the Romanian clones. I finally discovered that there probably were two different disk formats. The HC-91 one had 40 tracks, and byte sized extents while the HC-2000 had 80 tracks, word sized extents. The "Z80CCP" version of the HC-2000 CP/M system seems to be able to re...
by stefano
Fri Dec 15, 2023 1:53 pm
Forum: Sinclair ZX
Topic: CP/M on the spectrum clones
Replies: 35
Views: 11087

Re: CP/M on the spectrum clones

I havent worked on this one (yet), but I'm adding the link for tracking purposes. COBRA http://cobrasov.com/CoBra%20Project/cpm80.html HC-2000 https://sites.google.com/site/georgechirtoaca/projects http://www.forofpga.es/download/file.php?id=620 https://www.z80-romania.ro/Dischete_CPM_pentru_HC_91_s...