blob: fc63cbb40e96aac96a918759aff864ab71a9d9df (
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
|
.include "tn85def.inc"
.def tmp0 = r16
.def tmp1 = r17
.def tmp2 = r18
.def tmp3 = r19
; Interrupt vectors
.org 0x0000
interrupts:
rjmp init
.org INT_VECTORS_SIZE
init:
; Initialize stack pointer
ldi tmp0, HIGH(RAMEND)
out SPH, tmp0
ldi tmp0, LOW(RAMEND)
out SPL, tmp0
; Set pin directions
ldi tmp0, 0b00010010
out DDRB, tmp0
ldi tmp0, 0b00010010
out PORTB, tmp0
main:
rjmp main
|