2474
|
1 *****************************************
|
|
2
|
|
3 * See if character in "B" is a uppercase letter
|
|
4
|
|
5 * OTHER MODULES NEEDED: none
|
|
6
|
|
7 * ENTRY: B=character to test
|
|
8
|
|
9 * EXIT: CC zero=1 if uppercase, 0 if not
|
|
10
|
|
11 nam Is Char Uppercase?
|
|
12 ttl Assembler Library Module
|
|
13
|
|
14
|
|
15 psect IS_UPPER,0,0,0,0,0
|
|
16
|
|
17
|
|
18 IS_UPPER:
|
|
19 cmpb #'A
|
|
20 blo no not uppercase, zero cleared
|
|
21 cmpb #'Z if equal, zero set
|
|
22 bhi no not upperc, zero cleared
|
|
23 orcc #%00000100 set zero
|
|
24
|
|
25 no
|
|
26 rts
|
|
27
|
|
28 endsect
|
|
29
|