projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c567bf
)
Research V5 development
author
Dennis Ritchie
<dmr@research.uucp>
Tue, 26 Nov 1974 23:13:21 +0000
(18:13 -0500)
committer
Dennis Ritchie
<dmr@research.uucp>
Tue, 26 Nov 1974 23:13:21 +0000
(18:13 -0500)
Work on file usr/source/s2/tty.s
Co-Authored-By: Ken Thompson <ken@research.uucp>
Synthesized-from: v5
usr/source/s2/tty.s
[new file with mode: 0644]
patch
|
blob
diff --git a/usr/source/s2/tty.s
b/usr/source/s2/tty.s
new file mode 100644
(file)
index 0000000..
86697c6
--- /dev/null
+++ b/
usr/source/s2/tty.s
@@ -0,0
+1,17
@@
+/ tty -- get tty number
+
+.globl ttyn
+
+ clr r0
+ jsr pc,ttyn
+ tst r0
+ movb r0,nam
+ mov $1,r0
+ sys write; name; 5
+ sys exit
+
+name:
+ <tty>
+nam:
+ <x\n>
+.even