annotate lib/alib/is_termin.as @ 2802:58ca94b06908 lwtools-port

now built from defs files
author Boisy Pitre <boisy.pitre@nuance.com>
date Fri, 01 Feb 2013 19:26:44 -0600
parents 03f26e88b809
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2474
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
1 *****************************************
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
2
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
3 * See if character in "B" is a valid string terminator.
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
4
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
5 * NOTE: This module is used by HEX_BIN, DEC_BIN, etc. It permits
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
6 * SPACE, CR, COMMA and NULL to be used as a delimiter -- useful
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
7 * for paramater and list processing....
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
8
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
9 * OTHER MODULES NEEDED: none
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
10
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
11 * ENTRY: B=character to test
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
12
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
13 * EXIT: CC zero=1 if space, 0 if not
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
14
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
15
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
16 nam Is Char a Terminator?
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
17 ttl Assembler Library Module
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
18
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
19
2782
aaba193af04f Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2474
diff changeset
20 section .text
2474
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
21
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
22
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
23 IS_TERMIN:
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
24 tstb null?
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
25 beq exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
26 cmpb #$20 space
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
27 beq exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
28 cmpb #$0d carriage return
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
29 beq exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
30 cmpb #', comma?
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
31
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
32 exit
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
33 rts
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
34
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
35 endsect
7d70b7e1cb21 Moved net and alib files into here
boisy
parents:
diff changeset
36