The current virtual hardware is essentially a SWTPC 6800 computer with a 6502 processor instead of the 6800, 56K of RAM (though it will not require that much), an ACIA for a serial port and a WD 1771 for a disk controller.
My intent is to support the Corsham SD card system for mass storage once I figure out how to emulate it. That will likely be the first supported configuration in actual hardware. https://www.corshamtech.com/product/sd-card-system/
Maybe you can be the first?
FLEX has broken out the console and disk drivers into separate files and only those need to be reimplemented to adapt the system to custom hardware.
This is the manual for adapting 6809 FLEX to a new system. The process for the 6502 is similar. http://www.flexusergroup.com/flexusergr ... 09fadg.pdf
Other FLEX manuals can be found at: http://www.flexusergroup.com/flexusergroup/fug4.htm
I did some light reading on the Flex implementation guide. It seems pretty simple for console and disk access routines, which would basically qualify as BIOS on the target system. My current C02 Pocket SBC has some core routines in the BIOS that should work with some minimal modification and perhaps a new routine or two for the Console part.
I already have some Western Digital floppy controllers... WD1772, WD2792 and the one Atari made which qualifies as a WD1772 with fast clock support for HD floppies. I can likely put together a floppy controller without too much difficulty and write the BIOS for the required routines. This should be more straightforward as Flex essentially uses the specifics of the WD177x FDC.
My SBC is 32KB of RAM from $0000-$7FFF and EEPROM from $8000-$FFFF. I/O is on Page $FE00: 5- I/O selects which are 32-bytes wide. One is used for the UART console and the other four are available on an expansion connector. The next burning question... would it be possible to locate Flex in the EEPROM? I have ample available space, upwards of 24KB. It would be a nice option and keep most of the RAM for user apps or whatever. If not, I could modify the C02 Pocket and piggy-back a second 32KB RAM chip, then reprogram the CPLD glue chip and only address the EEPROM at the top 8KB.
Last... is the port to the 6502 only using 6502 opcodes and addressing modes or are you taking advantage of the CMOS enhancements? Thanks for entertaining the above.... this sounds like a fun expansion project.