Initial revision
[fw/sdcc] / device / lib / large / _decdptr.asm
1 ;--------------------------------------------------------
2 ; File Created by SDCC : FreeWare ANSI-C Compiler
3 ; Version 2.1.9Ga Sun Jan 16 17:31:22 2000
4
5 ;--------------------------------------------------------
6         .module _decdptr
7 ;--------------------------------------------------------
8 ; publics variables in this module
9 ;--------------------------------------------------------
10         .globl __decdptr
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 ;--------------------------------------------------------
38 ; global & static initialisations
39 ;--------------------------------------------------------
40         .area GSINIT (CODE)
41 ;--------------------------------------------------------
42 ; code
43 ;--------------------------------------------------------
44         .area CSEG (CODE)
45         G$_decdptr$0$0 ==.
46 ;       _decdptr.c 26
47 ;       -----------------------------------------
48 ;        function _decdptr
49 ;       -----------------------------------------
50 __decdptr:
51         ar2 = 0x02
52         ar3 = 0x03
53         ar4 = 0x04
54         ar5 = 0x05
55         ar6 = 0x06
56         ar7 = 0x07
57         ar0 = 0x00
58         ar1 = 0x01
59 ;       _decdptr.c 35
60                         xch     a,dpl
61                         jnz     00001$
62                         dec     dph
63 00001$:
64                         dec     a
65                         xch     a,dpl
66 00101$:
67         C$_decdptr.c$36$1$1 ==.
68         XG$_decdptr$0$0 ==.
69         ret
70         .area   CSEG    (CODE)