14 lines
279 B
Bash
14 lines
279 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
EMULATOR=./bin/emulator
|
||
|
if [ "${1}" = '--no-sdl' ]; then
|
||
|
EMULATOR=./bin/emulator-nosdl
|
||
|
shift
|
||
|
fi
|
||
|
if [ -z "${1}" ]; then
|
||
|
printf 'usage: %s [--no-sdl] USM_FILE\n' "${0}" >&2
|
||
|
exit 2
|
||
|
fi
|
||
|
./bin/assembler "${1}" bin/boot.rom
|
||
|
"${EMULATOR}" bin/boot.rom
|