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 (parent:
1022b48
)
Research V2 development
author
Dennis Ritchie
<dmr@research.uucp>
Mon, 5 Jun 1972 22:06:28 +0000
(17:06 -0500)
committer
Dennis Ritchie
<dmr@research.uucp>
Mon, 5 Jun 1972 22:06:28 +0000
(17:06 -0500)
Work on file lib/ctime.s
Synthesized-from: v2
lib/ctime.s
[new file with mode: 0644]
patch
|
blob
diff --git a/lib/ctime.s
b/lib/ctime.s
new file mode 100644
(file)
index 0000000..
dd5d125
--- /dev/null
+++ b/
lib/ctime.s
@@ -0,0
+1,26
@@
+/ C library -- ctime
+
+/ ctime(v1, v2);
+/ v1 is input time [2]
+/ v2 is char[16] ascii time
+/ format is 0123456789012345
+/ Mmm dd hh:mm:sse
+/
+
+.globl _ctime
+.globl ctime
+
+.data
+_ctime:
+ 1f
+.text
+1:
+ mov 2(sp),r0
+ mov (r0)+,-(sp)
+ mov (r0)+,mq
+ mov (sp)+,ac
+ mov 4(sp),r0
+ clrb 15.(r0)
+ jsr pc,ctime
+ rts pc
+