2017-09-17 18:18:47 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
CC65=~/dev/cc65/bin
|
|
|
|
CAFLAGS="--target apple2enh --list-bytes 0"
|
|
|
|
LDFLAGS="--config apple2-asm.cfg"
|
|
|
|
|
|
|
|
|
|
|
|
function doseg {
|
2017-09-17 18:31:10 +00:00
|
|
|
#../../desk.acc/res/make_info.pl $2 < "orig/DESKTOP2_$1" > "infos/$1.info"
|
|
|
|
echo ".org \$$2" > "$1.s"
|
|
|
|
$CC65/da65 "orig/DESKTOP2_$1" --info "infos/$1.info" >> "$1.s"
|
|
|
|
$CC65/ca65 $CAFLAGS --listing "$1.list" -o "$1.o" "$1.s"
|
|
|
|
$CC65/ld65 $LDFLAGS -o "$1.built" "$1.o"
|
|
|
|
diff "orig/DESKTOP2_$1" "$1.built"
|
2017-09-17 18:18:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-09-17 18:28:57 +00:00
|
|
|
doseg s0_loader 2000
|
|
|
|
|
|
|
|
doseg s1_aux1 4000
|
|
|
|
doseg s2_aux2 D000
|
|
|
|
doseg s3_aux3 FB00
|
|
|
|
doseg s4_main1 4000
|
2017-09-17 18:18:47 +00:00
|
|
|
|
|
|
|
#doseg 12680_1BCDF
|