Initial revision
[fw/sdcc] / device / lib / large / _isgraph.asm
1 ;--------------------------------------------------------
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3 ; Version 2.1.9Ga Sun Jan 16 17:31:29 2000
4
5 ;--------------------------------------------------------
6         .module _isgraph
7 ;--------------------------------------------------------
8 ; publics variables in this module
9 ;--------------------------------------------------------
10         .globl _isgraph
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   OSEG    (OVR,DATA)
25 ;--------------------------------------------------------
26 ; indirectly addressable internal ram data
27 ;--------------------------------------------------------
28         .area   ISEG    (DATA)
29 ;--------------------------------------------------------
30 ; bit data
31 ;--------------------------------------------------------
32         .area   BSEG    (BIT)
33 ;--------------------------------------------------------
34 ; external ram data
35 ;--------------------------------------------------------
36         .area   XSEG    (XDATA)
37 _isgraph_c_1_1:
38         .ds     0x0001
39 ;--------------------------------------------------------
40 ; global & static initialisations
41 ;--------------------------------------------------------
42         .area GSINIT (CODE)
43 ;--------------------------------------------------------
44 ; code
45 ;--------------------------------------------------------
46         .area CSEG (CODE)
47         G$isgraph$0$0 ==.
48 ;       _isgraph.c 25
49 ;       -----------------------------------------
50 ;        function isgraph
51 ;       -----------------------------------------
52 _isgraph:
53         ar2 = 0x02
54         ar3 = 0x03
55         ar4 = 0x04
56         ar5 = 0x05
57         ar6 = 0x06
58         ar7 = 0x07
59         ar0 = 0x00
60         ar1 = 0x01
61 ;       _isgraph.c 30
62         push    dpl
63         mov     dptr,#_isgraph_c_1_1
64         pop     acc
65         movx    @dptr,a
66 ;       _isgraph.c 28
67         mov     dptr,#_isgraph_c_1_1
68         movx    a,@dptr
69         mov     r2,a
70         cjne    r2,#0x21,00108$
71 00108$:
72 ; Peephole 132   changed ljmp to sjmp
73 ; Peephole 160   removed sjmp by inverse jump logic
74         jc   00102$
75 00109$:
76         clr     c
77         mov     a,#0x7e
78         subb    a,r2
79 ; Peephole 132   changed ljmp to sjmp
80 ; Peephole 160   removed sjmp by inverse jump logic
81         jc   00102$
82 00110$:
83 ;       _isgraph.c 29
84         mov     dpl,#0x01
85 ; Peephole 132   changed ljmp to sjmp
86         sjmp 00104$
87 00102$:
88 ;       _isgraph.c 30
89         mov     dpl,#0x00
90 00104$:
91         C$_isgraph.c$31$1$1 ==.
92         XG$isgraph$0$0 ==.
93         ret
94         .area   CSEG    (CODE)