Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/is_space.a @ 2677:c58baa9276c8 lwtools-port
Fix string constants used as numbers
More cases of string constants being used instead of ascii constants.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 10 Jun 2012 14:33:53 -0600 |
parents | 7d70b7e1cb21 |
children | aaba193af04f |
rev | line source |
---|---|
2474 | 1 ***************************************** |
2 | |
3 * See if character in "B" is a space ($20) | |
4 | |
5 * NOTE: This module is included for completeness only, | |
6 * it is much more efficient to do an inline test. | |
7 | |
8 * OTHER MODULES NEEDED: none | |
9 | |
10 * ENTRY: B=character to test | |
11 | |
12 * EXIT: CC zero=1 if space, 0 if not | |
13 | |
14 | |
15 nam Is Char a Space? | |
16 ttl Assembler Library Module | |
17 | |
18 | |
19 psect IS_SPACE,0,0,0,0,0 | |
20 | |
21 | |
22 IS_SPACE: | |
23 cmpb #$20 | |
24 rts | |
25 | |
26 endsect | |
27 |