Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/is_alnum.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 * See if character in "B" is a alpha letter a..z or A..Z or digit 0..9 | |
4 | |
5 * OTHER MODULES NEEDED: IS_ALPHA, IS_DIGIT | |
6 | |
7 * ENTRY: B=character to test | |
8 | |
9 * EXIT: CC zero=1 if alphanumeric, 0 if not | |
10 | |
11 | |
12 nam Is Char AlphaNumeric? | |
13 ttl Assembler Library Module | |
14 | |
15 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
16 section .text |
2474 | 17 |
18 | |
19 IS_ALNUM: | |
20 lbsr IS_ALPHA | |
21 BEQ yes upper/lowercase letters are alphanumeric | |
22 lbsr IS_DIGIT last chance to set flags. | |
23 | |
24 yes | |
25 rts | |
26 | |
27 | |
28 endsect | |
29 |