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







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.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=$((0x2000)) skip=$((0x0000)) if=example01.bin of=timelimt/t8
dd ibs=1 count=$((0x2000)) skip=$((0x2000)) if=example01.bin of=timelimt/t7
dd ibs=1 count=$((0x2000)) skip=$((0x4000)) if=example01.bin of=timelimt/t6
dd ibs=1 count=$((0x2000)) skip=$((0x6000)) if=example01.bin of=timelimt/t9

#ROM_START( timelimt )
#ROM_REGION( 0x10000, "maincpu", 0 ) /* ROMs */
#ROM_LOAD( "t8",     0x0000, 0x2000, CRC(006767ca) SHA1(a5d528c58cd73c0101ffa9ab783ec870668256db) )
#ROM_LOAD( "t7",     0x2000, 0x2000, CRC(cbe7cd86) SHA1(502a78c14c9717a466ea24cdc63da4c0f3bec1f9) )
#ROM_LOAD( "t6",     0x4000, 0x2000, CRC(f5f17e39) SHA1(7d78f551ce73276725c349703a790f2a63bb5503) )
#ROM_LOAD( "t9",     0x6000, 0x2000, CRC(2d72ab45) SHA1(01d4afacc01b9e7c49355123efd5f5ad4d79a9cd) )








dd bs=$((0x1000)) count=1 if=/dev/zero of=timelimt/tl5
dd bs=$((0x1000)) count=1 if=/dev/zero of=timelimt/tl4

#ROM_REGION( 0x10000, "audiocpu", 0 )    /* ROMs */
#ROM_LOAD( "tl5",    0x0000, 0x1000, CRC(5b782e4a) SHA1(2f4fe2beb8efa5a636fefc1ee172d0200d1c9497) )
#ROM_LOAD( "tl4",    0x1000, 0x1000, CRC(a32883a9) SHA1(26e1725b67be87db28855672facb1504b8ac84d6) )










zxb.py library/b2r1f0sx_charmapchinesehero01.zxi --org=0x0000
cat dummy32k.bin >> b2r1f0sx_charmapchinesehero01.bin
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl11
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl10
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl13
dd ibs=1 count=$((0x1000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl12
dd ibs=1 count=$((0x2000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl3
dd ibs=1 count=$((0x2000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl2
dd ibs=1 count=$((0x2000)) skip=$((0x0010)) if=b2r1f0sx_charmapchinesehero01.bin of=timelimt/tl1
rm b2r1f0sx_charmapchinesehero01.bin

#zxb.py library/spritemap01.zxi --org=0x0000
#cat dummy32k.bin >> spritemap01.bin
#dd ibs=1 count=$((0x2000)) skip=$((0x0010)) if=spritemap01.bin of=timelimt/pp_e02.rom
#rm spritemap01.bin

#ROM_REGION( 0x2000, "tiles_1", 0 )  /* tiles */
#ROM_LOAD( "tl11",   0x0000, 0x1000, CRC(46676307) SHA1(38fe80722972b6b3ba32705469a0dcb868fb76a9) )
#ROM_LOAD( "tl10",   0x1000, 0x1000, CRC(2336908a) SHA1(345fc209ce891cc6f8f111c6d3a9e0f65ee6d818) )
#ROM_REGION( 0x2000, "tiles_2", 0 )  /* tiles */
#ROM_LOAD( "tl13",   0x0000, 0x1000, CRC(072e4053) SHA1(209edf7b371078e38d1c2812fa6a3d1a78193b3f) )
#ROM_LOAD( "tl12",   0x1000, 0x1000, CRC(ce960389) SHA1(57ee52cfa1b5a3832b362b38c8b7aa411dfc782b) )
#ROM_REGION( 0x6000, "sprites", 0 )  /* sprites */
#ROM_LOAD( "tl3",    0x0000, 0x2000, CRC(01a9fd95) SHA1(cd1078700c97a3539c9d9447c55efbd27540a1b3) )
#ROM_LOAD( "tl2",    0x2000, 0x2000, CRC(4693b849) SHA1(fbebedde53599fb1eaedc648bd704b321ab096b5) )
#ROM_LOAD( "tl1",    0x4000, 0x2000, CRC(c4007caf) SHA1(ae05af3319545d5ca98a046bfc100138a5a3ed96) )









zxb.py library/palette01.bas --org=0x0000
cat dummy32k.bin >> palette01.bin
dd ibs=1 count=$((0x0200)) skip=$((0x0010)) if=palette01.bin of=palette01b.bin
dd ibs=1 count=$((0x0020)) skip=$((0x0000)) if=palette01b.bin of=timelimt/clr.35
dd ibs=1 count=$((0x0020)) skip=$((0x0000)) if=palette01b.bin of=timelimt/clr.48
dd ibs=1 count=$((0x0020)) skip=$((0x0000)) if=palette01b.bin of=timelimt/clr.57
rm palette01.bin palette01b.bin
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=timelimt/timelimt.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=timelimt/timelimt.5h
#dd ibs=1 count=$((0x0100)) skip=$((0x0100)) if=clut01b.bin of=timelimt/timelimt.11j
#rm clut01b.bin

#????
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=timelimt/clr.35  #0x00..0x1F
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=timelimt/clr.48  #0x20..0x3F
#dd bs=$((0x0020)) count=1 if=/dev/urandom of=timelimt/clr.57  #0x40..0x5F

#touch timelimt/clr.35
#touch timelimt/clr.48
#touch timelimt/clr.57

#ROM_REGION( 0x0060, "proms", 0 )
#ROM_LOAD( "clr.35", 0x0000, 0x0020, CRC(9c9e6073) SHA1(98496175bf19a8cdb0018705bc1a2193b8a782e1) )
#ROM_LOAD( "clr.48", 0x0020, 0x0020, BAD_DUMP CRC(a0bcac59) SHA1(e5832831b21981363509b79d89766757bd9273b0) ) /* FIXED BITS (xxxxxx1x) */
#ROM_LOAD( "clr.57", 0x0040, 0x0020, NO_DUMP )   /* missing sprite color prom? */
#ROM_END







rm smsboot.bin dummy32k.bin example01.bin

zip -r timelimt timelimt
rm timelimt/*
rmdir timelimt

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












#ROM_START( timelimt )
#ROM_REGION( 0x10000, "maincpu", 0 ) /* ROMs */
#ROM_LOAD( "t8",     0x0000, 0x2000, CRC(006767ca) SHA1(a5d528c58cd73c0101ffa9ab783ec870668256db) )
#ROM_LOAD( "t7",     0x2000, 0x2000, CRC(cbe7cd86) SHA1(502a78c14c9717a466ea24cdc63da4c0f3bec1f9) )
#ROM_LOAD( "t6",     0x4000, 0x2000, CRC(f5f17e39) SHA1(7d78f551ce73276725c349703a790f2a63bb5503) )
#ROM_LOAD( "t9",     0x6000, 0x2000, CRC(2d72ab45) SHA1(01d4afacc01b9e7c49355123efd5f5ad4d79a9cd) )

#ROM_REGION( 0x10000, "audiocpu", 0 )    /* ROMs */
#ROM_LOAD( "tl5",    0x0000, 0x1000, CRC(5b782e4a) SHA1(2f4fe2beb8efa5a636fefc1ee172d0200d1c9497) )
#ROM_LOAD( "tl4",    0x1000, 0x1000, CRC(a32883a9) SHA1(26e1725b67be87db28855672facb1504b8ac84d6) )

#ROM_REGION( 0x2000, "tiles_1", 0 )  /* tiles */
#ROM_LOAD( "tl11",   0x0000, 0x1000, CRC(46676307) SHA1(38fe80722972b6b3ba32705469a0dcb868fb76a9) )
#ROM_LOAD( "tl10",   0x1000, 0x1000, CRC(2336908a) SHA1(345fc209ce891cc6f8f111c6d3a9e0f65ee6d818) )
#ROM_REGION( 0x2000, "tiles_2", 0 )  /* tiles */
#ROM_LOAD( "tl13",   0x0000, 0x1000, CRC(072e4053) SHA1(209edf7b371078e38d1c2812fa6a3d1a78193b3f) )
#ROM_LOAD( "tl12",   0x1000, 0x1000, CRC(ce960389) SHA1(57ee52cfa1b5a3832b362b38c8b7aa411dfc782b) )
#ROM_REGION( 0x6000, "sprites", 0 )  /* sprites */
#ROM_LOAD( "tl3",    0x0000, 0x2000, CRC(01a9fd95) SHA1(cd1078700c97a3539c9d9447c55efbd27540a1b3) )
#ROM_LOAD( "tl2",    0x2000, 0x2000, CRC(4693b849) SHA1(fbebedde53599fb1eaedc648bd704b321ab096b5) )
#ROM_LOAD( "tl1",    0x4000, 0x2000, CRC(c4007caf) SHA1(ae05af3319545d5ca98a046bfc100138a5a3ed96) )

#ROM_REGION( 0x0060, "proms", 0 )
#ROM_LOAD( "clr.35", 0x0000, 0x0020, CRC(9c9e6073) SHA1(98496175bf19a8cdb0018705bc1a2193b8a782e1) )
#ROM_LOAD( "clr.48", 0x0020, 0x0020, BAD_DUMP CRC(a0bcac59) SHA1(e5832831b21981363509b79d89766757bd9273b0) ) /* FIXED BITS (xxxxxx1x) */
#ROM_LOAD( "clr.57", 0x0040, 0x0020, NO_DUMP )   /* missing sprite color prom? */
#ROM_END







