Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/stimestr.as @ 3278:ea1afb494127
defs: Add Bt.Sec for atari and corsham
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 07 Mar 2020 23:52:40 +0100 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 ***************************************** |
2 | |
3 * Get current system time as an ascii string. | |
4 | |
5 | |
6 * OTHER MODULES NEEDED: DATESTR | |
7 | |
8 * ENTRY: X=buffer for ascii | |
9 | |
10 * EXIT: all registers preserved (except cc) | |
11 | |
12 nam Get System Time String | |
13 ttl Assembler Library Module | |
14 | |
15 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
16 section .text |
2474 | 17 |
18 STIMESTR: | |
19 pshs x,y | |
20 tfr x,y ascii buffer to Y | |
21 leas -7,s buffer for time packet | |
22 tfr s,x | |
23 os9 F$Time get system time | |
24 lbsr DATESTR convert to ascii in Y buffer | |
25 leas 7,s | |
26 puls x,y,pc | |
27 | |
28 endsect | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
29 t |