PICSim  0.8.1
PICsim - PIC Simulator
p16fxxx_defs.h
1 /* ########################################################################
2 
3  PICsim - PIC simulator
4 
5  ########################################################################
6 
7  Copyright (c) : 2008-2020 Luis Claudio Gambôa Lopes
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2, or (at your option)
12  any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 
23  For e-mail suggestions : lcgamboa@yahoo.com
24  ######################################################################## */
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
35  typedef struct {
36 #ifdef ICSPDBG
37  unsigned char *ICKBUG; //0x18E
38  unsigned char *BIGBUG; //0x18F
39 #endif
40 
41  unsigned char * OPTION_REG;
42  unsigned char * INDF;
43  unsigned char * STATUS;
44  unsigned char * FSR;
45  unsigned char * PCL;
46  unsigned char * PCLATH;
47 
48  unsigned char * INTCON;
49  unsigned char * PIR1;
50  unsigned char * PIR2;
51  unsigned char * PIE1;
52  unsigned char * PIE2;
53 
54  unsigned char * PORTA;
55  unsigned char * PORTB;
56  unsigned char * PORTC;
57  unsigned char * PORTD;
58  unsigned char * PORTE;
59  unsigned char * TRISA;
60  unsigned char * TRISB;
61  unsigned char * TRISC;
62  unsigned char * TRISD;
63  unsigned char * TRISE;
64 
65  unsigned char * TXSTA;
66  unsigned char * RCSTA;
67  unsigned char * TXREG;
68  unsigned char * RCREG;
69  unsigned char * SPBRG;
70 
71  unsigned char * TMR0;
72 
73  unsigned char * T1CON;
74  unsigned char * TMR1L;
75  unsigned char * TMR1H;
76 
77  unsigned char * CCP1CON;
78  unsigned char * CCP2CON;
79  unsigned char * CCP3CON;
80  unsigned char * CCPR1L;
81  unsigned char * CCPR1H;
82  unsigned char * CCPR2L;
83  unsigned char * CCPR2H;
84  unsigned char * CCPR3L;
85  unsigned char * CCPR3H;
86 
87  unsigned char * TMR2;
88  unsigned char * T2CON;
89  unsigned char * PR2;
90 
91  unsigned char * SSPCON;
92  unsigned char * SSPCON2;
93  unsigned char * SSPBUF;
94  unsigned char * SSPSTAT;
95  unsigned char * SSPADD;
96 
97  unsigned char * ADCON0;
98  unsigned char * ADCON1;
99  unsigned char * ADCON2;
100  unsigned char * ADRESL;
101  unsigned char * ADRESH;
102 
103 
104  unsigned char * EECON1;
105  unsigned char * EECON2;
106  unsigned char * EEDATA;
107  unsigned char * EEADR;
108  unsigned char * EEDATH;
109  unsigned char * EEADRH;
110  /*
111  unsigned char * PCON;
112  unsigned char * OSCCON;
113  unsigned char * OSCTUNE;
114  unsigned char * CMCON;
115  unsigned char * CVRCON;
116  unsigned char * VRCON;
117  unsigned char * WDTCON;
118  unsigned char * LVDCON;
119  unsigned char * PMDATA;
120  unsigned char * PMADR;
121  unsigned char * PMDATH;
122  unsigned char * PMADRH;
123  unsigned char * PMCON1;
124  */
125  } P16map_t;
126 
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
P16map_t
PICsim P16 memory map structure.
Definition: p16fxxx_defs.h:35