Fixed compile and start scripts for new version of c65gm

This commit is contained in:
Mattias Hansson 2026-04-17 17:13:56 +02:00
parent 9fa81ccb38
commit b0f37ebce3
4 changed files with 4 additions and 19 deletions

17
cm.sh
View file

@ -2,20 +2,5 @@
# Define filename as variable
PROGNAME="cardgame"
# Only set C65LIBPATH if not already defined
if [ -z "$C65LIBPATH" ]; then
export C65LIBPATH=$(readlink -f "../../lib")
fi
# Compile
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
#c65cm in:${PROGNAME}.c65 out:${PROGNAME}.s hidelicense
echo assemble.
acme ${PROGNAME}.s
# Only remove if exists
if [ -f ${PROGNAME}.prg ]; then
rm ${PROGNAME}.prg
fi
#mv main.bin ${PROGNAME}.prg
mv main.bin main.prg
c65gm ${PROGNAME}.c65

2
start_in_vice.sh Normal file → Executable file
View file

@ -1 +1 @@
x64 -autostartprgmode 1 main.prg
x64 -autostartprgmode 1 cardgame.prg

View file

@ -1 +1 @@
curl -X POST http://192.168.88.72/v1/runners:run_prg -H "Content-Type: application/octet-stream" --data-binary @main.prg
curl -X POST http://192.168.88.72/v1/runners:run_prg -H "Content-Type: application/octet-stream" --data-binary @cardgame.prg

View file

@ -1 +1 @@
curl -X POST http://192.168.88.73/v1/runners:run_prg -H "Content-Type: application/octet-stream" --data-binary @main.prg
curl -X POST http://192.168.88.73/v1/runners:run_prg -H "Content-Type: application/octet-stream" --data-binary @cardgame.prg