From 278f1713b7c5e636892dd5e98ff85f6c998781c0 Mon Sep 17 00:00:00 2001 From: Dennis Ritchie Date: Tue, 26 Nov 1974 18:13:21 -0500 Subject: [PATCH] Research V5 development Work on file usr/source/s2/tty.s Co-Authored-By: Ken Thompson Synthesized-from: v5 --- usr/source/s2/tty.s | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 usr/source/s2/tty.s diff --git a/usr/source/s2/tty.s b/usr/source/s2/tty.s new file mode 100644 index 0000000000..86697c6bf4 --- /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: + +nam: + +.even -- 2.20.1