rm sidewndr.zip
rm example01.asm
rm sidewndr/*
rmdir sidewndr
mkdir sidewndr





dd bs=32768 count=1 if=/dev/zero of=dummy32k.bin




#cpu
#- zxb.py example01.zxb --asm --org=$((0x0000))
#- zxb.py example01.zxb --org=$((0x0000))
zxb.py library/smsboot.bas --org=1024
dd ibs=1 count=$((0x0069)) skip=$((0x0000)) if=smsboot.bin of=smsboot2.bin
zxb.py example01.zxb --heap-size=128 --asm --org=$((0x0069))
zxb.py example01.zxb --heap-size=128 --org=$((0x0069))
cat example01.bin >> smsboot2.bin
rm example01.bin
mv smsboot2.bin example01.bin
cat dummy32k.bin >> example01.bin
dd ibs=1 count=$((0x800)) skip=$((0x0000)) if=example01.bin of=sidewndr/2_h09.bin
dd ibs=1 count=$((0x800)) skip=$((0x0800)) if=example01.bin of=sidewndr/2_h10.bin
dd ibs=1 count=$((0x800)) skip=$((0x1000)) if=example01.bin of=sidewndr/2_h11.bin
dd ibs=1 count=$((0x800)) skip=$((0x1800)) if=example01.bin of=sidewndr/2_h12.bin





#gfx
zxb.py library/b1r3f0_charmapspaceintruder01.zxi --org=$((0x0000))
cat dummy32k.bin >> b1r3f0_charmapspaceintruder01.bin
dd ibs=1 count=$((0x800)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=sidewndr/2_h05.bin
dd ibs=1 count=$((0x800)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=sidewndr/2_h06.bin
dd ibs=1 count=$((0x800)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=sidewndr/2_h07.bin
dd ibs=1 count=$((0x800)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=sidewndr/2_h08.bin
rm b1r3f0_charmapspaceintruder01.bin







#zxb.py library/palette01.bas --org=$((0x0000))
#cat dummy32k.bin >> palette01.bin
#dd ibs=1 count=$((0x0020)) skip=$((0x0010)) if=palette01.bin of=sidewndr/sidewndr.3j
#rm palette01.bin
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=sidewndr/sidewndr.3j
#- clut01.zxi might need to be different files
#zxb.py library/clut01.zxi --org=$((0x0000))
#cat dummy32k.bin >> clut01.bin
#dd ibs=1 count=$((0x0200)) skip=$((0x0010)) if=clut01.bin of=clut01b.bin
#rm clut01.bin
#dd ibs=1 count=$((0x0100)) skip=$((0x0000)) if=clut01b.bin of=sidewndr/sidewndr.5h
#dd ibs=1 count=$((0x0100)) skip=$((0x0100)) if=clut01b.bin of=sidewndr/sidewndr.11j
#rm clut01b.bin

#????
#dd bs=256 count=1 if=/dev/zero of=sidewndr/82s126.1m
#dd bs=256 count=1 if=/dev/zero of=sidewndr/82s126.3m

rm smsboot.bin dummy32k.bin example01.bin

zip -r sidewndr sidewndr
rm sidewndr/*
rmdir sidewndr

mame -w -video soft -resolution0 512x512 -rp ./ sidewndr


