MFX with a difference grows up

Posts related to the MFX Interface
Post questions about MFX and raise any issues or problems here
Martin A
Posts: 839
Joined: 09 Nov 2013 21:03

Re: MFX with a difference grows up

Post by Martin A »

stephen_usher wrote: 29 Jan 2025 00:28 Seeing as CPM3 on other platforms often had incompatible disk formats to CPM2 on the same machine, is there a reason for keeping the old restrictions in the original BIOS?
CPM2 has been left exactly as it was, there's no changes to the bootrom or the BIOS, that's to ensure compatibility. With HexTrain we have the "best" 8 bit game ever. I wasn't going to do anything to break that, or require a "special" version. Similarly NewWord is tied pretty tightly to the BIOS/Bootrom. Plus of course SDX basic and all the games that makes available, is not only tied to the CPM2 BIOS/BDOS, its tied specifcally to the 59k version.

CPM3 more or less required a new partition format. CPM2 expects each track to be 26 sectors of 128 bytes, that works out at 3.25k per track. CPM3 works with the native sector size, for CF and SD that's 512 bytes, meaning there's no way to define a track that is 3.25k long. I possibly could have made the track 6.5K long and made things work. However a 4k track size and a 4K block size makes the disc geometry calculations incredibly simple. The CPM 2 calculation is something like 42 bytes to the CPM3 version's 18 bytes. It's a lot simpler and quicker to multuply by 8 than 26!

As for the current hybrid structure, CPM 2 can only see 4 partitions at once, so restricting it to 4 partitions total is no real hardship. SDX Basic can't ever see the last 4 partitions so there is no loss there either. Putting the CPM3 partitions where the last 4 CPM2 partitions were meant that the HexTrain data that sits immediately after the CPM area isn't affected in any way.

Reducing the size of the CPM3 partitions from 8meg to 4meg, that was just to make file management a bit easier. With no real sub directory support 256 files per drive (or 192 with time stamps) is easier to manage than double that. There's no overall loss of capacity, because CPM3 can cope with 16 drives at once, all 8 partitions are always visible for 32meg of storage. Moving to 16 x 2 meg partitions would require more memory for the drive tables in the BIOS, and therfore consume more TPA space that I was willing to give up, so 8 was a compromise.

With FTP available to both versions, that means there's no requirement for direct file transfer between CPM2 and CPM3 partitions. So keping them totally separate isn't a problem.
Martin A
Posts: 839
Joined: 09 Nov 2013 21:03

Re: MFX with a difference grows up

Post by Martin A »

Excuse the messy bench, I just had to own up to Dave about the extra feature I slipped into the FPGA version 4.05 code. Andy's floating Point accelerator from ReMemorizor/ReMemotech.

Performance is exactly the same as ReMemorizor, so 9m 11s to complete the benchmark Mandelbrot. Unlike CPM3 there won't be a version of this for old boards, there's not enough space in those FPGAs for the accelerator.
Img_5379-small.jpg
Img_5379-small.jpg (80.79 KiB) Viewed 10483 times
That's literally not enough space, even if all the other code was deleted, the FPA takes around 5000 logic elelments. Which is more than the 4608 total logic elements avaialble on the cyclone 2 we were using.
User avatar
gunrock
Posts: 275
Joined: 28 Oct 2020 21:17

Re: MFX with a difference grows up

Post by gunrock »

Looks cool Martin - and why not? If we worried whether any of these extensions and mods made sense, we'd be loading from tape and floppy still. :D
Steve G
Danish Memotech MTX 512, MFX and loving it
Martin A
Posts: 839
Joined: 09 Nov 2013 21:03

Re: MFX with a difference grows up

Post by Martin A »

I keep promising myself that "one day" that bench will be tidied. In the mean time ...
The latest version of BBC Basic Z80
The latest version of BBC Basic Z80
Img_5384-small.jpg (75.58 KiB) Viewed 3017 times
Richard Russell has released an updated version of BBC Basic for the Z80 https://www.bbcbasic.co.uk/bbcbasic/z80basic.html Basic 5 is based on the Archimedes version of basic, instead of the one from the BBC Master.

I've made use of the built in system specific patch area, to allow it to run on the MFX with CPM3 with as many features as possible. The patched code needs more testing, a release candidate has gone off to Dave to play with and if there's no show stoppers will no doubt appear on his site at some point :)

The unpatched CPM download from the linked above works on any CPM system, including MTX CPM 2.2. It's just missing the customisations.
User avatar
1024MAK
Posts: 784
Joined: 24 Dec 2012 03:01
Location: Looking forward to summer, in Somerset, UK

Re: MFX with a difference grows up

Post by 1024MAK »

Martin A wrote: 13 Apr 2025 11:18 I keep promising myself that "one day" that bench will be tidied.
One clipped resistor leg at a time... Or is that just me! :shock: :roll: :lol:

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Autumn is here. Bye bye summer 2024...

Not as many MTXs as Dave! :lol:
Post Reply