cd %~p0
cd i7090
rm test.log
set console -n -q log=test.log
set cpu 709 
set dk disable
set coml disable
set ch0 enable
set mta0 low
set mta1 low
set mta2 low
set mta3 low
set mta4 low
set mta5 low
set mtb0 low
set mtb1 low
set mtb2 low
set mtb3 low
set mtb4 low
set mtb5 low
set mtc0 low
set mtc1 low
set mtc2 low
set mtc3 low
set mtc4 low
set mtc5 low
at dr0 -q test1.drm
at mta1 -n -q testa1.tp
at mta2 -n -q testa2.tp
at mta3 -n -q testa3.tp
at mta4 -n -q testa4.tp
at mtb1 -n -q testb1.tp
at mtb2 -n -q testb2.tp
at cdp0 -n -q test.cbn
at lp0 -n -q diaglog.log
at cdr0 -q 9m01b.dck
echo 9m01b
bo cdr0
at cdr0 -q 9m02a.dck
echo 9m02a
bo cdr0
at cdr0 -q 9m03a.dck
echo 9m03a
bo cdr0
at cdr0 -q 9m04a.dck
echo 9m04a
bo cdr0
at cdr0 -q 9m05b.dck
echo 9m05b
bo cdr0
at cdr0 -q 9m21a.dck
echo 9m21a
bo cdr0
at cdr0 -q xcomc.dck
echo xcomc
bo cdr0
dep keys 11111105117
at cdr0 -q 9sy1a.dck
echo 9sy1a
b cdr0
set cpu efp
at cdr0 -q 9efpa.dck
echo 9efpa
echo expect "TEST LOC 03610, OPN EAD "
b cdr0
c
at cdr0 -q 9esla.dck
echo 9esla
b cdr0
c
c
at cdr0 -q 9comb.dck
echo 9comb
b cdr0
dep keys 100017
at cdr0 -q 9c01a.dck
echo 9c01a
bo cdr0
c
at cdr0 -q 9c02a.dck
echo 9c02a
bo cdr0
c
det cdp0 
at cdp0 -q test1.cbn
at cdr0 -q 9r01a.dck
echo 9r01a
b cdr0
c
det cdp0
at cdr0 -q test1.cbn
at cdp0 -q test2.cbn
c
at cdr0 -q 9b01a.dck
echo 9b01a
bo cdr0
at cdr0 -q 9b01a_low.txt
c
at cdr0 -q 9p01c.dck
echo 9p01c
b cdr0
c
at cdr0 -q 9p02a.dck
echo 9p02a
b cdr0
c
at cdr0 -q 9t01a.dck
echo 9t01a
dep keys 11111105117
b cdr0
c
at cdr0 -q 9t02b.dck
echo 9t02b
dep keys 11111105117
b cdr0
c
at cdr0 -q 9t03a.dck
echo 9t03a
dep keys 11111105117
b cdr0
c
dep keys 0
at cdr0 -q 9t04a.dck
dep keys 11111105117
echo 9t04a
b cdr0
c
dep keys 0
c
dep keys 11111105117
at cdr0 -q 9t05a.dck
echo 9t05a
b cdr0
c
dep keys 77700000000
at cdr0 -q 9d01a.dck
echo 9d01a
echo expect "TEST LOC 01046, OPN LDA"
echo expect "TEST LOC 02242, OPN IOT"
echo expect "TEST LOC 02266, OPN CPY"
b cdr0
c
at cdr0 -q 9iota.dck
echo 9iota
echo "expect errors here"
dep keys 11111111117
b cdr0
c
echo HALT at 161 ok
c
echo HALT at 176 ok
c
echo HALT at 224 ok
reset cpu
c
echo HALT at 251 ok
step 2
c
c
c
c
c
c
detach -q all
del test*.tp
del test*.cbn
del test1.drm
set console nolog
if -F "test.log" == "good.test" exit 0
exit 1
