2024-03-20 15:47:58 +01:00
|
|
|
#!/bin/bash -eu
|
|
|
|
|
2024-03-26 15:19:57 +01:00
|
|
|
cd "$(dirname "$0")" ; CWD=$(pwd)
|
2024-03-20 15:47:58 +01:00
|
|
|
|
2024-03-26 15:19:57 +01:00
|
|
|
STATEDIR=$CWD/stateDir.49
|
|
|
|
mkdir -p "$STATEDIR"
|
|
|
|
|
|
|
|
if [ ! -e "$STATEDIR"/rom.49g ]; then
|
|
|
|
( cd "$STATEDIR"
|
2024-03-20 15:47:58 +01:00
|
|
|
# wget -c https://www.hpcalc.org/hp49/pc/rom/hp4950v210.zip -O rom.zip
|
|
|
|
wget -c https://www.hpcalc.org/hp49/pc/rom/beta1196.zip -O rom.zip
|
|
|
|
unzip rom.zip
|
|
|
|
rm rom.zip
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2024-03-20 16:25:41 +01:00
|
|
|
RAM=''
|
2024-03-26 15:19:57 +01:00
|
|
|
if [ ! -e "$STATEDIR"/ram ]; then
|
2024-03-20 16:25:41 +01:00
|
|
|
RAM=-reset
|
2024-03-20 15:47:58 +01:00
|
|
|
fi
|
|
|
|
|
2024-03-26 15:19:57 +01:00
|
|
|
./run_saturn -face hp49 -hw hp49 -stateDir "$STATEDIR" -rom rom.49g $RAM
|