aboutsummaryrefslogtreecommitdiffstats
path: root/timer.s
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2025-05-11 22:21:06 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2025-05-11 22:21:06 +0300
commit90a4d4a1353dd7b514fe4ef10c1ed2c6f24cadbe (patch)
treec0b032e839bcc7f78e560253ecee1dbe943b4600 /timer.s
parentdbf6176481b6421517c612a9042f0c6d6e773046 (diff)
temp commitHEADmaster
Diffstat (limited to 'timer.s')
-rw-r--r--timer.s23
1 files changed, 1 insertions, 22 deletions
diff --git a/timer.s b/timer.s
index 94e97ae..c62b2b5 100644
--- a/timer.s
+++ b/timer.s
@@ -1,22 +1,4 @@
-.equ PINB, 0x03
-.equ DDRB, 0x04
-.equ PORTB, 0x05
-.equ PIND, 0x09
-.equ DDRD, 0x0A
-.equ PORTD, 0x0B
-.equ TIFR0, 0x15
-.equ ADDR, 0x256
-.equ SPL, 0x3D
-.equ SPH, 0x3E
-.equ SREG, 0x3F
-.equ TCCR0A, 0x0024
-.equ TCCR0B, 0x0025
-.equ TCNT0, 0x0026
-.equ OCR0A, 0x0027
-.equ TIMSK0, 0x006E
-.equ STOFL, 0xFF
-.equ STOFH, 0x08
-.equ TOIE0, 1
+.include "def.s"
.equ LOC, 0x128
.equ FREQ, 0x80
@@ -71,7 +53,6 @@ tmrint:
eor r20, r20
.stt:
sts LOC, r20
-.exit:
pop r21
pop r20
pop r19
@@ -94,7 +75,6 @@ main:
sts ADDR, r1
rjmp .loop
.finloop:
-
in r13, PINB
in r14, PORTB
@@ -107,4 +87,3 @@ main:
rjmp main
-