Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/strcpy.as @ 2784:2594295f9cc7 lwtools-port
Merged Drencor's work
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Sat, 26 Jan 2013 17:19:06 -0600 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 ********************************** |
2 | |
3 * STRCPY: copy a null terminated string | |
4 * User must ensure there is room in buffer!!! | |
5 | |
6 * OTHER MODULES NEEDED: STRNCPY | |
7 | |
8 * ENTRY: X=start of string to move | |
9 * Y=buffer for copy of string | |
10 | |
11 * EXIT: all regs preserved (except cc) | |
12 | |
13 | |
14 nam Copy Null Term. String | |
15 ttl Assembler Library Module | |
16 | |
17 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
18 section .text |
2474 | 19 |
20 STRCPY: | |
21 pshs d | |
22 ldd #$ffff pass very long value to STRNCPY | |
23 lbsr STRNCPY move it | |
24 puls d,pc | |
25 | |
26 endsect | |
27 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
28 |