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






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





#- 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.bas --heap-size=128 --asm --org=$((0x0069))
zxb.py example01.bas --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=$((0x2000)) skip=$((0x0000)) if=example01.bin of=zodiack/ovg30c.2
dd ibs=1 count=$((0x2000)) skip=$((0x2000)) if=example01.bin of=zodiack/ovg30c.3
dd ibs=1 count=$((0x0800)) skip=$((0x4000)) if=example01.bin of=zodiack/ovg30c.6

#ROM_START( zodiack )
#ROM_REGION( 0x10000, "maincpu", 0 )
#ROM_LOAD( "ovg30c.2",     0x0000, 0x2000, CRC(a2125e99) SHA1(00ae4ed2c7b6895d2dc58aa2fc51c25b6428e4ba) )
#ROM_LOAD( "ovg30c.3",     0x2000, 0x2000, CRC(aee2b77f) SHA1(2581b7a75d38663cc5ebc91a77385ca7eb9b4aba) )
#ROM_LOAD( "ovg30c.6",     0x4000, 0x0800, CRC(1debb278) SHA1(98c9f09c5f3125ba8a1392be62fd469aa0ba4d98) )






dd bs=$((0x1000)) count=1 if=/dev/zero of=zodiack/ovg20c.1

#ROM_REGION( 0x10000, "audiocpu", 0 )
#ROM_LOAD( "ovg20c.1",     0x0000, 0x1000, CRC(2d3c3baf) SHA1(e32937b947e591cba45da2dd456e4f655e62ddfd) )














zxb.py library/b1r3f0_charmapspaceintruder01.zxi --org=$((0x0000))
cat dummy32k.bin >> b1r3f0_charmapspaceintruder01.bin
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=zodiack/ovg40c.7
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=zodiack/orca40c.8
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b1r3f0_charmapspaceintruder01.bin of=zodiack/orca40c.9
rm b1r3f0_charmapspaceintruder01.bin

#ROM_REGION( 0x2800, "gfx1", 0 )
#ROM_LOAD( "ovg40c.7",     0x0000, 0x0800, CRC(ed9d3be7) SHA1(80d5906afef8b6d68fb13d41992aea208d9e3690) )
#ROM_LOAD( "orca40c.8",    0x0800, 0x1000, CRC(88269c94) SHA1(acc27be0d27b33c2242ecf0563fe986e8dffb264) )
#ROM_LOAD( "orca40c.9",    0x1800, 0x1000, CRC(a3bd40c9) SHA1(dcf8cbb73c081a3af85da135e8278c54e9e0de7c) )






#zxb.py library/palette01.bas --org=$((0x0000))
#cat dummy32k.bin >> palette01.bin
#dd ibs=1 count=$((0x0020)) skip=$((0x0010)) if=palette01.bin of=zodiack/zodiack.3j
#rm palette01.bin
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=zodiack/zodiack.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=zodiack/zodiack.5h
#dd ibs=1 count=$((0x0100)) skip=$((0x0100)) if=clut01b.bin of=zodiack/zodiack.11j
#rm clut01b.bin
#????
dd bs=32 count=1 if=/dev/urandom of=zodiack/ovg40c.2a
dd bs=32 count=1 if=/dev/urandom of=zodiack/ovg40c.2b

#ROM_REGION( 0x0040, "proms", 0 )
#ROM_LOAD( "ovg40c.2a",    0x0000, 0x0020, CRC(703821b8) SHA1(33dcc9b0bea5e110eb4ffd3b8b8763e32e927b22) )
#ROM_LOAD( "ovg40c.2b",    0x0020, 0x0020, CRC(21f77ec7) SHA1(b1019afc4361aca98b7120b21743bfeb5ea2ff63) )
#ROM_END







rm smsboot.bin dummy32k.bin example01.bin

zip -r zodiack zodiack
rm zodiack/*
rmdir zodiack

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











#ROM_START( zodiack )
#ROM_REGION( 0x10000, "maincpu", 0 )
#ROM_LOAD( "ovg30c.2",     0x0000, 0x2000, CRC(a2125e99) SHA1(00ae4ed2c7b6895d2dc58aa2fc51c25b6428e4ba) )
#ROM_LOAD( "ovg30c.3",     0x2000, 0x2000, CRC(aee2b77f) SHA1(2581b7a75d38663cc5ebc91a77385ca7eb9b4aba) )
#ROM_LOAD( "ovg30c.6",     0x4000, 0x0800, CRC(1debb278) SHA1(98c9f09c5f3125ba8a1392be62fd469aa0ba4d98) )

#ROM_REGION( 0x10000, "audiocpu", 0 )
#ROM_LOAD( "ovg20c.1",     0x0000, 0x1000, CRC(2d3c3baf) SHA1(e32937b947e591cba45da2dd456e4f655e62ddfd) )

#ROM_REGION( 0x2800, "gfx1", 0 )
#ROM_LOAD( "ovg40c.7",     0x0000, 0x0800, CRC(ed9d3be7) SHA1(80d5906afef8b6d68fb13d41992aea208d9e3690) )
#ROM_LOAD( "orca40c.8",    0x0800, 0x1000, CRC(88269c94) SHA1(acc27be0d27b33c2242ecf0563fe986e8dffb264) )
#ROM_LOAD( "orca40c.9",    0x1800, 0x1000, CRC(a3bd40c9) SHA1(dcf8cbb73c081a3af85da135e8278c54e9e0de7c) )

#ROM_REGION( 0x0040, "proms", 0 )
#ROM_LOAD( "ovg40c.2a",    0x0000, 0x0020, CRC(703821b8) SHA1(33dcc9b0bea5e110eb4ffd3b8b8763e32e927b22) )
#ROM_LOAD( "ovg40c.2b",    0x0020, 0x0020, CRC(21f77ec7) SHA1(b1019afc4361aca98b7120b21743bfeb5ea2ff63) )
#ROM_END














