#!/usr/bin/expect
spawn ./mmd
expect "CLOCK"
expect "\\-"
send "lo 4\r"
expect "LOAD COMPLETE"
expect "\\-"
send "st\r"
expect "CLOCK"
expect "\\-"
send "lo 118\r"
expect "LOAD COMPLETE"
expect "\\-"
send "st\r"
expect "\\*"
send "proceed 2\r"
expect "\\*"
send "repeat 1\r"
expect "\\*"
send "option\r"
expect "\\*"
send "run\r"
expect "TOTAL"
expect "\\*"
send "@"
expect "sim>"
send "run 20000\r"
expect "CLOCK"
expect "\\-"
send "lo 2\r"
expect "LOAD COMPLETE"
expect "\\-"
send "st\r"
expect "\\*"
send "0\r"
expect "\\*"
send "@"
expect "sim>"
send "run 20000\r"
expect "CLOCK"
expect "\\-"
send "lo 3\r"
expect "LOAD COMPLETE"
expect "\\-"
send "MOD 20A4,4300,21B6\r"
expect "\\-"
send "st\r"
expect "ENTER CPU OPTION CHOICE"
expect "\\*"
send "0"
expect "\\*"
send "1\r"
expect "1234567890"
expect "timeout"
send "1234567890"
expect "1234567890"
expect "timeout"
send "1234567890"
expect "\\*"
send "2\r"
expect "\\*"
send "3\r"
expect "\\*"
send "0\r"
expect "PRESS BRK"
send "\005"
expect "sim>"
send "set ttp break\r"
expect "sim>"
send "co\r"
expect "\\*"
send "4\r"
expect "\\*"
send "0\r"
expect "DEPRESS KEYS"
expect "1234567890"
expect "timeout"
send "1234567890"
expect "DEPRESS KEYS"
expect "1234567890"
expect "timeout"
send "1234567890"
expect "\\*"
send "7\r"
expect "\\*"
send @
expect "sim>"
send "run 20000\r"
expect "CLOCK"
expect "\\-"
send "LO 310\r"
expect "LOAD COMPLETE"
expect "\\-"
send "st\r"
expect "\\*"
send "mac 900\r"
expect "\\*"
send "run\r"
expect "TEST  00"
expect "TEST  01"
expect "TEST  02"
expect "TEST  03"
expect "TEST  04"
expect "TEST  05"
expect "TEST  06"
expect "TEST  07"
expect "TEST  08"
expect "TEST  09"
expect "TEST  0A"
expect "TEST  0B"
expect "END OF TEST"
expect "\\*"
send "\005"
expect "sim>"
