Research V2 development
authorDennis Ritchie <dmr@research.uucp>
Mon, 5 Jun 1972 22:44:29 +0000 (17:44 -0500)
committerDennis Ritchie <dmr@research.uucp>
Mon, 5 Jun 1972 22:44:29 +0000 (17:44 -0500)
Work on file lib/time.s

Synthesized-from: v2

lib/time.s [new file with mode: 0644]

diff --git a/lib/time.s b/lib/time.s
new file mode 100644 (file)
index 0000000..ce77465
--- /dev/null
@@ -0,0 +1,19 @@
+/ C library -- time
+
+/ tvec = time(tvec);
+/
+/ tvec[0], tvec[1] contain the time
+
+       .globl  _time
+
+.data
+_time:
+       1f
+.text
+1:
+       mov     2(sp),r0
+       sys     time
+       mov     ac,(r0)
+       mov     mq,2(r0)
+       rts     pc
+