Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng

This commit is contained in:
Gwenhael Le Moine 2023-05-16 16:29:42 +02:00
commit 4dc4d8f0b1
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 19 additions and 9 deletions

View file

@ -14,7 +14,7 @@ This is my fork of x48-0.6.4 where I deviate from the original code and do my ow
## Bugs to fix
- debugger: `stack` segfaults
See https://github.com/gwenhael-le-moine/x48ng/issues
## What more I would like to do:

View file

@ -1,15 +1,25 @@
#!/usr/bin/env sh
TARGET=${TARGET:-.x48ng}
DOTX48NG=${DOTX48NG:-.x48ng}
mkdir -p ~/${TARGET}
ROM=${ROM:-@PREFIX@/share/x48ng/ROMs/gxrom-r}
cp @PREFIX@/share/x48ng/ROMs/gxrom-r ~/${TARGET}/rom.dump
cp ~/${TARGET}/rom.dump ~/${TARGET}/rom
[ -d ~/${DOTX48NG} ] && rm -fr ~/${DOTX48NG}
mkdir -p ~/${DOTX48NG}
cd ~/${TARGET}
cp $ROM ~/${DOTX48NG}/rom.dump
cp ~/${DOTX48NG}/rom.dump ~/${DOTX48NG}/rom
cd ~/${DOTX48NG}
@PREFIX@/share/x48ng/mkcard 128K port1
@PREFIX@/share/x48ng/mkcard 4M port2
PORT1_SIZE=128K
PORT2_SIZE=4M
@PREFIX@/bin/x48ng -initialize -home ${TARGET}
if $(echo $ROM | grep -q "^sx"); then
PORT2_SIZE=128K
fi
@PREFIX@/share/x48ng/mkcard $PORT1_SIZE port1
@PREFIX@/share/x48ng/mkcard $PORT2_SIZE port2
cd ~/${DOTX48NG}/
@PREFIX@/bin/x48ng -home ${DOTX48NG} -verbose -initialize