Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/strcat.as @ 2783:03f26e88b809 lwtools-port
Renamed files and setup for lwasm/lwlink work
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Sat, 26 Jan 2013 17:18:24 -0600 |
parents | lib/alib/strcat.a@aaba193af04f |
children |
rev | line source |
---|---|
2474 | 1 ********************************** |
2 | |
3 * STRCAT: append 2 null terminated strings | |
4 * User must ensure there is room in buffer!!! | |
5 | |
6 * OTHER MODULES NEEDED: STRCPY, STRLEN | |
7 | |
8 * ENTRY: X=start of string to move | |
9 * Y=start of string to append to | |
10 | |
11 * EXIT: all regs preserved (except cc) | |
12 | |
13 | |
14 nam Append 2 null terminated strings | |
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 STRCAT: | |
21 pshs d,x,y | |
22 exg x,y | |
23 lbsr STRLEN find end of appended string | |
24 leax d,x point to end of "buffer" | |
25 exg x,y | |
26 lbsr STRCPY copy string | |
27 puls d,x,y,pc | |
28 | |
29 endsect | |
30 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
31 |