I spent some time adapting my basic so that it'll work on the Compact Flash Coreboard. I realised that ubee512 has the ability to emulate that, so worked out how to run it under ubee512.
The source code (plus the final PCF.ROM for those who don't want to asemble their own is on my Google Drive.
I use the same source now to assemble either the PAK Cart Basic or CF Basic. There's a pair of variables right at the top of Freebee Fremium Basic 1.0.asm that define what we're doing:
;#############################################################################################
; Define what we're assembling
;#############################################################################################
PAKBASIC: equ 0 ; = 1 if we're targetting the PAK Cart Coreboard
CFBASIC: equ 1 ; = 1 if we're targetting the Compact Flash Coreboard
Set CFBASIC to 1 and PAKBASIC to 0 to assemble the CF Basic.
Assemble the ROM using:
z80asm -i Freebee\ Fremium\ Basic\ 1.0.asm -o output.bin -llisting.txt
split -b 8k output.bin
cat xae xaf xag xah > PCF.ROM
dd if=/dev/zero bs=1 count=229376 >> PCF.ROM
This places the ROMA at 00000h, ROMB at 02000h, ROMC at 04000h, and the CF boot code from 05800h in PCF.ROM, and pads the ROM out to 256K so ubee512 doesn't complain about size.
Copy the resultant PCF.ROM file to your ubee512k ROM directory.
Execute ubee512 with:
ubee512 --model=pcf --rom256k=PCF.ROM

No comments:
Post a Comment