Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / avr.src / regsavr.h
1 /*
2  * Simulator of microcontrollers (regsavr.h)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  * 
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  */
9
10 /* This file is part of microcontroller simulator: ucsim.
11
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING.  If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA. */
26 /*@1@*/
27
28 #ifndef REGSAVR_HEADER
29 #define REGSAVR_HEADER
30
31 /*
32  * Registers, absolute data space addresses
33  */
34
35 #define X       0x001a
36 #define XL      0x001a
37 #define XH      0x001b
38 #define Y       0x001c
39 #define YL      0x001c
40 #define YH      0x001d
41 #define Z       0x001e
42 #define ZL      0x001e
43 #define ZH      0x001f
44
45 #define ADCL    0x0024
46 #define ADCH    0x0025
47 #define ADCSR   0x0026
48 #define ADMUX   0x0027
49 #define ACSR    0x0028
50 #define UBRR    0x0029
51 #define UCR     0x002A
52 #define USR     0x002B
53 #define UDR     0x002C
54 #define SPCR    0x002D
55 #define SPSR    0x002E
56 #define SPDR    0x002F
57 #define PIND    0x0030
58 #define DDRD    0x0031
59 #define PORTD   0x0032
60 #define PINC    0x0033
61 #define DDRC    0x0034
62 #define PORTC   0x0035
63 #define PINB    0x0036
64 #define DDRB    0x0037
65 #define PORTB   0x0038
66 #define PINA    0x0039
67 #define DDRA    0x003A
68 #define PORTA   0x003B
69 #define EECR    0x003C
70 #define EEDR    0x003D
71 #define EEARL   0x003E
72 #define EEARH   0x003E
73 #define WDTCR   0x0041
74 #define ASSR    0x0042
75 #define OCR2    0x0043
76 #define TCNT2   0x0044
77 #define TCCR2   0x0045
78 #define ICR1L   0x0046
79 #define ICR1H   0x0047
80 #define OCR1BL  0x0048
81 #define OCR1BH  0x0049
82 #define OCR1AL  0x004A
83 #define OCR1AH  0x004B
84 #define TCNT1L  0x004C
85 #define TCNT1H  0x004D
86 #define TCCR1B  0x004E
87 #define TCCR1A  0x004F
88 #define TCNT0   0x0052
89 #define TCCR0   0x0053
90 #define MCUSR   0x0054
91 #define MCUCR   0x0055
92 #define TIFR    0x0058
93 #define TIMSK   0x0059
94 #define GIFR    0x005A
95 #define GIMSK   0x005B
96 #define SPL     0x005D
97 #define SPH     0x005E
98 #define SREG    0x005F
99
100 /* Bits of SREG */
101 #define BIT_I   0x80
102 #define BIT_T   0x40
103 #define BIT_H   0x20
104 #define BIT_S   0x10
105 #define BIT_V   0x08
106 #define BIT_N   0x04
107 #define BIT_Z   0x02
108 #define BIT_C   0x01
109
110
111 #endif
112
113 /* End of avr.src/regsavr.h */