diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fee334 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +Chf/mt_build/ +Chf/st_build/ +Makefile +Makefile.bak +Saturn +cpu +hdw +mod +pack +pack._man +saturn +saturn._man +saturn.cat +stateDir.gwh_run48/ +*.o diff --git a/gwh_build.sh b/gwh_build.sh new file mode 100755 index 0000000..cefb18b --- /dev/null +++ b/gwh_build.sh @@ -0,0 +1,6 @@ +#!/bin/bash -eu + +make clean +xmkmf +touch saturn.man pack.man +make diff --git a/gwh_run48.sh b/gwh_run48.sh new file mode 100755 index 0000000..2d9f68c --- /dev/null +++ b/gwh_run48.sh @@ -0,0 +1,18 @@ +#!/bin/bash -eu + +STATEDIR=./stateDir.gwh_run48 +mkdir -p $STATEDIR + +if [ ! -e $STATEDIR/gxrom-r ]; then + (cd $STATEDIR + wget -c https://www.hpcalc.org/hp48/pc/emulators/gxrom-r.zip -O gxrom-r.zip + unzip gxrom-r.zip + rm gxrom-r.zip + ) +fi +RAM=ram +if [ ! -e $STATEDIR/ram ]; then + RAM="-reset" +fi + +./run_saturn -face hp48 -hw hp48 -stateDir $STATEDIR -rom gxrom-r $RAM diff --git a/pack.man b/pack.man new file mode 100644 index 0000000..e69de29 diff --git a/saturn.man b/saturn.man new file mode 100644 index 0000000..e69de29