1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-02-01 22:43:27 +00:00
Files
DoctorWkt.unix-jun72/pages/e09-08
2008-04-26 03:36:41 +00:00

22 lines
481 B
Plaintext

bne 1f / if not, branch
mov $511,rcsr(r1) / set control bits for receiver
mov $511,tcsr(r1) / set control bits for transmitter
movb $210,tty+4(r1) / put 210 in tty table word 3 / set flags
1:
incb (r5) / inc first byte of tty buffer
tst (sp)+
tst u.ttyp / is there a process control tty
bne 1f / yes, then branch
mov r5,u.ttyp / no, make this tty the process control tty
br 1f / return
ccvt:
sub $28.,r1
asl r1 / 0%4
asl r1
mov tty+6(r1),r5
decb (r5)
1:
jmp sret