1
0
mirror of https://github.com/mgcaret/of816.git synced 2025-04-17 13:40:37 +00:00

initial changes for GoSXB updates

This commit is contained in:
mgcaret 2025-02-03 12:52:08 -08:00
parent 9444fac7d2
commit 9217f40d2d
5 changed files with 30 additions and 2 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ romfs
.DS_Store
*.hex
of816-neon.bin
platforms/GoSXB/smallrom
platforms/GoSXB/rom
platforms/GoSXB/romfs
platforms/GoSXB/romfs_files/OF

View File

@ -16,5 +16,6 @@ ca65 -I ../../inc GoSXB.s -l GoSXB.lst
ld65 -C GoSXB.l -S 0x8000 GoSXB.o ../../forth.o -m forth.map -o forth
ca65 -I ../../inc romboot.s -l romboot.lst
ld65 -C romboot.l -S 0x0000 romboot.o -m romboot.map -o rom
ls -l rom forth
ld65 -C romboot-small.l -S 0x0000 romboot.o -m romboot-small.map -o smallrom
ls -l smallrom rom forth romfs

View File

@ -5,4 +5,10 @@ ROMFSOPTS=
if [ -z "$1" ] && [ -r romfs ]; then
ROMFSOPTS="-add-rom 0x220000:romfs"
fi
exec ${EXEBIN} -add-rom 0x200000:forth ${ROMFSOPTS} -rom rom
MINOPTS="-no-sxb -lua of816.lua"
if [ -z "$NOSXB" ]; then
exec ${EXEBIN} -add-rom 0x200000:forth ${ROMFSOPTS} -rom rom
else
exec ${EXEBIN} -no-sxb -lua of816.lua ${ROMFSOPTS}
fi

View File

@ -0,0 +1,8 @@
bus.attach(bus.device("main_ram"), 0, 24)
bus.attach(bus.device("via2", emulator), 0x7FE0, 5)
local srom, srombits = bus.device("rom", "smallrom")
bus.attach(srom, 0x8000, srombits)
local from, frombits = bus.device("rom", "forth")
bus.attach(from, 0x200000, frombits)
-- local romfs, romfsbits = bus.device("rom", "../of816-gosxb/romfs")
-- bus.attach(romfs, 0x220000, romfsbits)

View File

@ -0,0 +1,12 @@
# This config is for an unbanked 32K ROM @0x8000 in bank 0
MEMORY {
MAINMEM: start = $0000, size=$10000;
ROM: start = $8000, size = $8000, fillval=$FF, file = %O;
ZP: start = $0000, size = $100;
}
SEGMENTS {
ROMBOOT: load=ROM, run=ROM, start=$FF00, type=ro;
VECTORS: load=ROM, run=ROM, start=$FFE0, type=ro;
}