Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/memset.a @ 2782:aaba193af04f lwtools-port
Updated code to use lwasm/lwlink
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Sat, 26 Jan 2013 08:26:31 -0600 |
parents | 7d70b7e1cb21 |
children |
rev | line source |
---|---|
2474 | 1 ************************************ |
2 | |
3 * MEMSET: Set bytes in memory to specified value | |
4 | |
5 * OTHER MODULES NEEDED: none | |
6 | |
7 * ENTRY: X=start of memory | |
8 * Y=number of bytes to set | |
9 * B=character to set | |
10 | |
11 * EXIT: all registers (except cc) preserved | |
12 | |
13 nam Set memory | |
14 ttl Assembler Library Module | |
15 | |
16 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
17 section .text |
2474 | 18 |
19 MEMSET: | |
20 pshs x,y | |
21 | |
22 loop | |
23 stb ,x+ | |
24 leay -1,y dec count | |
25 bne loop till zero | |
26 | |
27 puls x,y,pc | |
28 | |
29 endsect |