From: Dennis Ritchie Date: Mon, 5 Jun 1972 22:06:28 +0000 (-0500) Subject: Research V2 development X-Git-Tag: Research-V2~51 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/d6253c5faa665eac6ff3ef42470b20013f4f719b Research V2 development Work on file lib/ctime.s Synthesized-from: v2 --- 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 +