2016-09-13 01:52:46 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
set -x
|
|
|
|
export ACME="$HOME/gh/acme/ACME_Lib"
|
2016-10-17 02:09:50 +00:00
|
|
|
|
2016-09-13 01:52:46 +00:00
|
|
|
acme apple_split_1.asm
|
2016-12-07 02:16:01 +00:00
|
|
|
|
|
|
|
# # Build floatbus.dsk with applecommander, on an empty dos3.3 disk
|
|
|
|
# # ===============================================================
|
|
|
|
#
|
|
|
|
# cp ../dsk/dos33-blank.dsk floatbus.dsk
|
|
|
|
# # Convert to binary HELLO.
|
|
|
|
# # See https://groups.google.com/d/topic/comp.sys.apple2.programmer/oEVsfLpZGvE
|
|
|
|
# printf '\x34' | dd conv=notrunc of=floatbus.dsk bs=1 seek=$((0x0d42))
|
|
|
|
# applecommander -d floatbus.dsk HELLO || echo '(No HELLO to delete)'
|
|
|
|
# applecommander -p floatbus.dsk HELLO B 0x6000 < apple_split_1.o
|
|
|
|
|
|
|
|
# Build floatbus.dsk with diskii (bit.ly/a2diskii), on a Super-Mon disk
|
|
|
|
# =====================================================================
|
|
|
|
|
|
|
|
cp ../dsk/supermon20.dsk floatbus.dsk
|
|
|
|
# FHELLO: load file DF02 at 0x6000.
|
|
|
|
echo -n -e '\x20\x40\x03\x6D\x01\xDC\x2C\x02\xDF\x2C\x00\x60\xF8\x4C\x00\x60' | diskii put -f floatbus.dsk DF01:FHELLO -
|
|
|
|
diskii put -f floatbus.dsk DF02:FWORLD apple_split_1.o
|
|
|
|
|
2016-10-17 02:09:50 +00:00
|
|
|
|
|
|
|
# On my computer, run mame like this:
|
2016-12-07 02:16:01 +00:00
|
|
|
# mame -rompath ~/mame/roms/ apple2ee -flop1 ./floatbus.dsk
|