aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/devices/atmega1281/device.asm
blob: cc6543627d3c4084605c3455816dbc50cd896e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
; Partname:  ATmega1281
; generated automatically, do not edit

.nolist
	.include "m1281def.inc"
.list

.equ ramstart =  512
.equ CELLSIZE = 2
.macro readflashcell
	clr temp7
	lsl zl
	rol zh
	rol temp7
	out_ RAMPZ, temp7
	elpm @0, Z+
	elpm @1, Z+
.endmacro
.macro writeflashcell
	clr temp7
	lsl zl
	rol zh
	rol temp7
	out_ RAMPZ, temp7
.endmacro
.set WANT_ANALOG_COMPARATOR = 0
.set WANT_USART0 = 0
.set WANT_USART1 = 0
.set WANT_TWI = 0
.set WANT_SPI = 0
.set WANT_PORTA = 0
.set WANT_PORTB = 0
.set WANT_PORTC = 0
.set WANT_PORTD = 0
.set WANT_PORTE = 0
.set WANT_PORTF = 0
.set WANT_PORTG = 0
.set WANT_TIMER_COUNTER_0 = 0
.set WANT_TIMER_COUNTER_2 = 0
.set WANT_WATCHDOG = 0
.set WANT_TIMER_COUNTER_5 = 0
.set WANT_TIMER_COUNTER_4 = 0
.set WANT_TIMER_COUNTER_3 = 0
.set WANT_TIMER_COUNTER_1 = 0
.set WANT_EEPROM = 0
.set WANT_JTAG = 0
.set WANT_EXTERNAL_INTERRUPT = 0
.set WANT_AD_CONVERTER = 0
.set WANT_BOOT_LOAD = 0
.set WANT_CPU = 0
.equ intvecsize = 2 ; please verify; flash size: 131072 bytes
.equ pclen = 2 ; please verify
.overlap
.org 2
	 rcall isr ; External Interrupt Request 0
.org 4
	 rcall isr ; External Interrupt Request 1
.org 6
	 rcall isr ; External Interrupt Request 2
.org 8
	 rcall isr ; External Interrupt Request 3
.org 10
	 rcall isr ; External Interrupt Request 4
.org 12
	 rcall isr ; External Interrupt Request 5
.org 14
	 rcall isr ; External Interrupt Request 6
.org 16
	 rcall isr ; External Interrupt Request 7
.org 18
	 rcall isr ; Pin Change Interrupt Request 0
.org 20
	 rcall isr ; Pin Change Interrupt Request 1
.org 22
	 rcall isr ; Pin Change Interrupt Request 2
.org 24
	 rcall isr ; Watchdog Time-out Interrupt
.org 26
	 rcall isr ; Timer/Counter2 Compare Match A
.org 28
	 rcall isr ; Timer/Counter2 Compare Match B
.org 30
	 rcall isr ; Timer/Counter2 Overflow
.org 32
	 rcall isr ; Timer/Counter1 Capture Event
.org 34
	 rcall isr ; Timer/Counter1 Compare Match A
.org 36
	 rcall isr ; Timer/Counter1 Compare Match B
.org 38
	 rcall isr ; Timer/Counter1 Compare Match C
.org 40
	 rcall isr ; Timer/Counter1 Overflow
.org 42
	 rcall isr ; Timer/Counter0 Compare Match A
.org 44
	 rcall isr ; Timer/Counter0 Compare Match B
.org 46
	 rcall isr ; Timer/Counter0 Overflow
.org 48
	 rcall isr ; SPI Serial Transfer Complete
.org 50
	 rcall isr ; USART0, Rx Complete
.org 52
	 rcall isr ; USART0 Data register Empty
.org 54
	 rcall isr ; USART0, Tx Complete
.org 56
	 rcall isr ; Analog Comparator
.org 58
	 rcall isr ; ADC Conversion Complete
.org 60
	 rcall isr ; EEPROM Ready
.org 62
	 rcall isr ; Timer/Counter3 Capture Event
.org 64
	 rcall isr ; Timer/Counter3 Compare Match A
.org 66
	 rcall isr ; Timer/Counter3 Compare Match B
.org 68
	 rcall isr ; Timer/Counter3 Compare Match C
.org 70
	 rcall isr ; Timer/Counter3 Overflow
.org 72
	 rcall isr ; USART1, Rx Complete
.org 74
	 rcall isr ; USART1 Data register Empty
.org 76
	 rcall isr ; USART1, Tx Complete
.org 78
	 rcall isr ; 2-wire Serial Interface
.org 80
	 rcall isr ; Store Program Memory Read
.org 82
	 rcall isr ; Timer/Counter4 Capture Event
.org 84
	 rcall isr ; Timer/Counter4 Compare Match A
.org 86
	 rcall isr ; Timer/Counter4 Compare Match B
.org 88
	 rcall isr ; Timer/Counter4 Compare Match C
.org 90
	 rcall isr ; Timer/Counter4 Overflow
.org 92
	 rcall isr ; Timer/Counter5 Capture Event
.org 94
	 rcall isr ; Timer/Counter5 Compare Match A
.org 96
	 rcall isr ; Timer/Counter5 Compare Match B
.org 98
	 rcall isr ; Timer/Counter5 Compare Match C
.org 100
	 rcall isr ; Timer/Counter5 Overflow
.org 102
	 rcall isr ; USART2, Rx Complete
.org 104
	 rcall isr ; USART2 Data register Empty
.org 106
	 rcall isr ; USART2, Tx Complete
.org 108
	 rcall isr ; USART3, Rx Complete
.org 110
	 rcall isr ; USART3 Data register Empty
.org 112
	 rcall isr ; USART3, Tx Complete
.equ INTVECTORS = 57
.nooverlap

; compatability layer (maybe empty)

; controller data area, environment query mcu-info
mcu_info:
mcu_ramsize:
	.dw 8192
mcu_eepromsize:
	.dw 4096
mcu_maxdp:
	.dw 65535 
mcu_numints:
	.dw 57
mcu_name:
	.dw 10
	.db "ATmega1281"
.set codestart=pc