2474
|
1 *****************************************
|
|
2
|
|
3 * See if character in "B" is a punctuation character
|
|
4
|
|
5 * OTHER MODULES NEEDED: IS_ALNUM, IS_CNTRL
|
|
6
|
|
7 * ENTRY: B=character to test
|
|
8
|
|
9 * EXIT: CC zero=1 if punct., 0 if not
|
|
10
|
|
11
|
|
12 nam Is Char Punctuation?
|
|
13 ttl Assembler Library Module
|
|
14
|
|
15
|
|
16 psect IS_PUNCT,0,0,0,0,0
|
|
17
|
|
18
|
|
19 IS_PUNCT:
|
|
20 lbsr IS_ALNUM
|
|
21 BEQ no if its a.z,A.Z or 0.9 not punct
|
|
22 lbsr IS_CNTRL
|
|
23 BEQ no controls not punct.
|
|
24 orcc #%00000100 set carry
|
|
25 rts
|
|
26
|
|
27 no
|
|
28 andcc #%11111011 clear zero
|
|
29 rts
|
|
30
|
|
31
|
|
32 endsect
|
|
33
|