From d6253c5faa665eac6ff3ef42470b20013f4f719b Mon Sep 17 00:00:00 2001 From: Dennis Ritchie Date: Mon, 5 Jun 1972 17:06:28 -0500 Subject: [PATCH] Research V2 development Work on file lib/ctime.s Synthesized-from: v2 --- lib/ctime.s | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/ctime.s diff --git a/lib/ctime.s b/lib/ctime.s new file mode 100644 index 0000000000..dd5d125bdb --- /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 + -- 2.20.1