Simplified compile and start scripts in all examples
This commit is contained in:
parent
027eda5069
commit
ea45c9421e
15 changed files with 21 additions and 127 deletions
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="for_byte_max_test"
|
PROGNAME="for_byte_max_test"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
|
|
|
||||||
2
examples/for_byte_max_test/start_in_vice.sh
Normal file → Executable file
2
examples/for_byte_max_test/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 for_byte_max_test.prg
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="hires"
|
PROGNAME="hires"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
2
examples/hires/start_in_vice.sh
Normal file → Executable file
2
examples/hires/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 hires.prg
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="memlib_demo"
|
PROGNAME="memlib_demo"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
|
|
|
||||||
2
examples/memlib_demo/start_in_vice.sh
Normal file → Executable file
2
examples/memlib_demo/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 memlib_demo.prg
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="multicolorbm"
|
PROGNAME="multicolorbm"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
2
examples/multicolorbm/start_in_vice.sh
Normal file → Executable file
2
examples/multicolorbm/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 multicolorbm.prg
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="script_library_demo"
|
PROGNAME="script_library_demo"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
|
|
|
||||||
2
examples/script_library_demo/start_in_vice.sh
Normal file → Executable file
2
examples/script_library_demo/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 script_library_demo.prg
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="shift_demo"
|
PROGNAME="shift_demo"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
#if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
# export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
#fi
|
|
||||||
# Compile - use absolute path to c65gm
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
|
|
|
||||||
2
examples/shift_demo/start_in_vice.sh
Normal file → Executable file
2
examples/shift_demo/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 shift_demo.prg
|
||||||
|
|
@ -1,20 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Define filename as variable
|
# Define filename as variable
|
||||||
PROGNAME="switch_demo"
|
PROGNAME="switch_demo"
|
||||||
# Only set C65LIBPATH if not already defined
|
# Compile and assemble directly
|
||||||
if [ -z "$C65LIBPATH" ]; then
|
c65gm ${PROGNAME}.c65
|
||||||
export C65LIBPATH=$(readlink -f "../../lib")
|
|
||||||
fi
|
|
||||||
# Compile
|
|
||||||
c65gm -in ${PROGNAME}.c65 -out ${PROGNAME}.s
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Compilation terminated"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo assemble.
|
|
||||||
acme ${PROGNAME}.s
|
|
||||||
if [ -f ${PROGNAME}.prg ]; then
|
|
||||||
rm ${PROGNAME}.prg
|
|
||||||
fi
|
|
||||||
# main.bin ${PROGNAME}.prg
|
|
||||||
mv main.bin main.prg
|
|
||||||
|
|
|
||||||
2
examples/switch_demo/start_in_vice.sh
Normal file → Executable file
2
examples/switch_demo/start_in_vice.sh
Normal file → Executable file
|
|
@ -1 +1 @@
|
||||||
x64 -autostartprgmode 1 main.prg
|
x64 -autostartprgmode 1 switch_demo.prg
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ ORIGIN $0801
|
||||||
#DEFINE MACHINE_C64 = 1
|
#DEFINE MACHINE_C64 = 1
|
||||||
|
|
||||||
ASM
|
ASM
|
||||||
!to "main.bin", cbm ; The output file definition (add CBM starting address)
|
|
||||||
!sl "main.sym" ; save the symbols to separate file
|
!sl "main.sym" ; save the symbols to separate file
|
||||||
!cpu 6502 ; The processor definition
|
!cpu 6502 ; The processor definition
|
||||||
; basic line "0 sys 2064"
|
; basic line "0 sys 2064"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue