micro68/rom.sh

12 lines
259 B
Bash
Raw Normal View History

2026-08-03 03:28:56 +09:00
#!/bin/sh
while [ ! -d .git ]; do
cd ..
done
cd build
vbccm68k -I../runtime -cpu=68000 -o=rom.s ../rom.c || exit 1
vasmm68k_mot -Felf -o rom.o rom.s || {
rm -f rom.s
exit 1
}
rm -f rom.s
vlink -brawbin -T../runtime/linker.ld -o rom.bin crt0.o libc.o rom.o