Removed silly lib files
[fw/sdcc] / device / lib / _gptrput.lst
1                               1 ;--------------------------------------------------------
2                               2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3                               3 ; Version 2.1.9Ga Sun Jan 16 17:31:28 2000
4                               4 
5                               5 ;--------------------------------------------------------
6                               6         .module _gptrput
7                               7 ;--------------------------------------------------------
8                               8 ; publics variables in this module
9                               9 ;--------------------------------------------------------
10                              10         .globl __gptrput
11                              11 ;--------------------------------------------------------
12                              12 ; special function registers
13                              13 ;--------------------------------------------------------
14                              14 ;--------------------------------------------------------
15                              15 ; special function bits 
16                              16 ;--------------------------------------------------------
17                              17 ;--------------------------------------------------------
18                              18 ; internal ram data
19                              19 ;--------------------------------------------------------
20                              20         .area   DSEG    (DATA)
21                              21 ;--------------------------------------------------------
22                              22 ; overlayable items in internal ram 
23                              23 ;--------------------------------------------------------
24                              24         .area   OSEG    (OVR,DATA)
25                              25 ;--------------------------------------------------------
26                              26 ; indirectly addressable internal ram data
27                              27 ;--------------------------------------------------------
28                              28         .area   ISEG    (DATA)
29                              29 ;--------------------------------------------------------
30                              30 ; bit data
31                              31 ;--------------------------------------------------------
32                              32         .area   BSEG    (BIT)
33                              33 ;--------------------------------------------------------
34                              34 ; external ram data
35                              35 ;--------------------------------------------------------
36                              36         .area   XSEG    (XDATA)
37                              37 ;--------------------------------------------------------
38                              38 ; global & static initialisations
39                              39 ;--------------------------------------------------------
40                              40         .area GSINIT (CODE)
41                              41 ;--------------------------------------------------------
42                              42 ; code
43                              43 ;--------------------------------------------------------
44                              44         .area CSEG (CODE)
45                     0000     45         G$_gptrput$0$0 ==.
46                              46 ;       _gptrput.c 26
47                              47 ;       -----------------------------------------
48                              48 ;        function _gptrput
49                              49 ;       -----------------------------------------
50    0000                      50 __gptrput:
51                     0002     51         ar2 = 0x02
52                     0003     52         ar3 = 0x03
53                     0004     53         ar4 = 0x04
54                     0005     54         ar5 = 0x05
55                     0006     55         ar6 = 0x06
56                     0007     56         ar7 = 0x07
57                     0000     57         ar0 = 0x00
58                     0001     58         ar1 = 0x01
59                              59 ;       _gptrput.c 72
60    0000 C8                   60                 xch      a,r0
61    0001 C0 E0                61                 push     acc
62    0003 C8                   62                 xch      a,r0
63    0004 C0 E0                63                 push     acc
64                              64             ;
65                              65             ;   depending on the pointer type
66                              66             ;
67    0006 E5 F0                67                 mov     a,b
68    0008 60 0D                68                 jz      00001$
69    000A 14                   69                 dec     a
70    000B 60 11                70                 jz      00002$
71    000D 14                   71                 dec     a
72    000E 60 13                72                 jz      00003$
73    0010 14                   73                 dec     a
74    0011 60 14                74                 jz      00004$
75    0013 D0 E0                75                 pop     acc
76    0015 80 15                76                 sjmp    00005$
77                              77 ;
78                              78 ;       store into near space
79                              79 ;       
80    0017                      80  00001$:
81    0017 D0 E0                81                 pop     acc
82    0019 A8 82                82                 mov     r0,dpl
83    001B F6                   83                 mov     @r0,a
84    001C 80 0E                84                 sjmp    00005$
85    001E                      85  00002$:
86    001E D0 E0                86                 pop     acc
87    0020 F0                   87                 movx    @dptr,a
88    0021 80 09                88                 sjmp    00005$
89    0023                      89  00003$:
90    0023 D0 E0                90                 pop     acc    ; do nothing
91    0025 80 05                91                 sjmp    00005$
92    0027                      92  00004$:
93    0027 D0 E0                93                 pop     acc
94    0029 A8 82                94                 mov     r0,dpl
95    002B F2                   95                 movx    @r0,a
96    002C                      96  00005$:
97    002C C8                   97                 xch     a,r0
98    002D D0 E0                98                 pop     acc
99    002F C8                   99                 xch     a,r0
100    0030                     100 00101$:
101                     0030    101         C$_gptrput.c$73$1$1 ==.
102                     0030    102         XG$_gptrput$0$0 ==.
103    0030 22                  103         ret
104                             104         .area   CSEG    (CODE)