@echo off

CD build

del /q *.tap *.trd

::tap build

bintap main.bin code0.tap main 26000
bintap PAGE1.bin code1.tap page1 49152
bintap PAGE3.bin code3.tap page3 49152
bintap PAGE4.bin code4.tap page4 49152
bintap PAGE6.bin code6.tap page6 49152
bintap PAGE7.bin code7.tap page7 49152

bas2tap -a10 -stest loader.bas loader.tap
bas2tap -a10 -sboot loadertrd.bas loadertrd.tap

copy /b loader.tap+code0.tap+code1.tap+code3.tap+code4.tap+code6.tap+code7.tap test.tap

copy test.tap ..\test.tap

copy /b loadertrd.tap+code0.tap+code1.tap+code3.tap+code4.tap+code6.tap+code7.tap test.tap

call tap2trd test.tap

copy test.trd ..\test.trd

del /q *.tap *.trd *.bin

CD ../

::uncomment to run tap
test.tap


