PDP-8 TTY Output of All Values
This program writes all values (from 0000 through 7777) to the TTY output port.
Granted, only the lowest 8 bits are used, but there's no harm in setting the other bits in the AC.
0000 7200 cla / clear accumulator
0001 6046 tls / dummy write (to clear flag)
loop, 0002 6041 tsf / skip if flag set
0003 5002 jmp loop / loop waiting for flag to clear
0004 7001 iac / next character
0005 6046 tls / write character to TTY
0006 5002 jmp loop / loop for next character
|