Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/is_lower.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 * See if character in "B" is a lowercase letter | |
4 | |
5 * OTHER MODULES NEEDED: none | |
6 | |
7 * ENTRY: B=character to test | |
8 | |
9 * EXIT: CC zero=1 if lowercase, 0 if not | |
10 | |
11 nam Is Char. Lowercase? | |
12 ttl Assembler Library Module | |
13 | |
14 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
15 section .text |
2474 | 16 |
17 | |
18 IS_LOWER: | |
19 cmpb #'a | |
20 blo no not lowercase, zero cleared | |
21 cmpb #'z if equal, zero set | |
22 bhi no not lowc, zero cleared | |
23 orcc #%00000100 set zero | |
24 | |
25 no | |
26 rts | |
27 | |
28 endsect | |
29 |