Initial revision
[fw/sdcc] / device / lib / small / _isprint.asm
1 ;--------------------------------------------------------
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3 ; Version 2.1.9Ga Sun Jan 16 17:31:13 2000
4
5 ;--------------------------------------------------------
6         .module _isprint
7 ;--------------------------------------------------------
8 ; publics variables in this module
9 ;--------------------------------------------------------
10         .globl _isprint
11 ;--------------------------------------------------------
12 ; special function registers
13 ;--------------------------------------------------------
14 ;--------------------------------------------------------
15 ; special function bits 
16 ;--------------------------------------------------------
17 ;--------------------------------------------------------
18 ; internal ram data
19 ;--------------------------------------------------------
20         .area   DSEG    (DATA)
21 ;--------------------------------------------------------
22 ; overlayable items in internal ram 
23 ;--------------------------------------------------------
24         .area _DUMMY
25         .area   OSEG    (OVR,DATA)
26 ;--------------------------------------------------------
27 ; indirectly addressable internal ram data
28 ;--------------------------------------------------------
29         .area   ISEG    (DATA)
30 ;--------------------------------------------------------
31 ; bit data
32 ;--------------------------------------------------------
33         .area   BSEG    (BIT)
34 ;--------------------------------------------------------
35 ; external ram data
36 ;--------------------------------------------------------
37         .area   XSEG    (XDATA)
38 ;--------------------------------------------------------
39 ; global & static initialisations
40 ;--------------------------------------------------------
41         .area GSINIT (CODE)
42 ;--------------------------------------------------------
43 ; code
44 ;--------------------------------------------------------
45         .area CSEG (CODE)
46         G$isprint$0$0 ==.
47 ;       _isprint.c 24
48 ;       -----------------------------------------
49 ;        function isprint
50 ;       -----------------------------------------
51 _isprint:
52         ar2 = 0x02
53         ar3 = 0x03
54         ar4 = 0x04
55         ar5 = 0x05
56         ar6 = 0x06
57         ar7 = 0x07
58         ar0 = 0x00
59         ar1 = 0x01
60 ;       _isprint.c 29
61         mov     r2,dpl
62 ;       _isprint.c 27
63         cjne    r2,#0x20,00108$
64 00108$:
65 ; Peephole 132   changed ljmp to sjmp
66 ; Peephole 160   removed sjmp by inverse jump logic
67         jc   00102$
68 00109$:
69         clr     c
70         mov     a,#0x7e
71         subb    a,r2
72 ; Peephole 132   changed ljmp to sjmp
73 ; Peephole 160   removed sjmp by inverse jump logic
74         jc   00102$
75 00110$:
76 ;       _isprint.c 28
77         mov     dpl,#0x01
78 ; Peephole 132   changed ljmp to sjmp
79         sjmp 00104$
80 00102$:
81 ;       _isprint.c 29
82         mov     dpl,#0x00
83 00104$:
84         C$_isprint.c$30$1$1 ==.
85         XG$isprint$0$0 ==.
86         ret
87         .area   CSEG    (CODE)