Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/to_upper.as @ 2831:7c8442122235 lwtools-port
fix level 1 builds
author | lfantoniosi |
---|---|
date | Tue, 18 Jun 2013 21:41:46 -0400 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 *************************************************** |
2 | |
3 * Convert character in "B" to uppercase | |
4 | |
5 * OTHER MODULES NEEDED: IS_LOWER | |
6 | |
7 * ENTRY: B=ascii value of character to convert | |
8 | |
9 * EXIT: B=ascii value of character in uppercase | |
10 | |
11 * Note: control codes, etc. are not effected. | |
12 | |
13 | |
14 nam Convert Char to Uppercase | |
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 TO_UPPER: | |
21 pshs cc | |
22 lbsr IS_LOWER only lowercase can be converted to upper | |
23 bne toupx | |
24 subb #$20 make uppercase | |
25 | |
26 toupx | |
27 puls cc,pc | |
28 | |
29 endsect | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
30 |