ys2-intro/loader/samples/minexample/furC64/convert.sh
2025-11-26 19:42:34 +07:00

16 lines
470 B
Bash
Executable file

#!/bin/bash
if [ $# -eq 0 ]
then
echo "No arguments supplied"
echo "Make sure to run this command with an argument"
echo "example: convert.sh test_file.fur"
else
python3 convert_to_asm.py $1
echo "converted .fur file to .asm!"
cd asm
cl65 -d -vm -l furC64.lst -g -u __EXEHDR__ -t c64 -C ./exe.cfg -m furC64.map -Ln furC64.lbl -o furC64-test.prg furC64.asm
cl65 -d -C ./bin.cfg -o song.bin furC64.asm
echo "compiled .prg file at asm/furC64-test.prg"
cd ..
fi