summaryrefslogtreecommitdiff
path: root/roms/7seg_counter_irq_timer_smart_update.asm
diff options
context:
space:
mode:
Diffstat (limited to 'roms/7seg_counter_irq_timer_smart_update.asm')
-rw-r--r--roms/7seg_counter_irq_timer_smart_update.asm16
1 files changed, 10 insertions, 6 deletions
diff --git a/roms/7seg_counter_irq_timer_smart_update.asm b/roms/7seg_counter_irq_timer_smart_update.asm
index 2b009de..e18bfc7 100644
--- a/roms/7seg_counter_irq_timer_smart_update.asm
+++ b/roms/7seg_counter_irq_timer_smart_update.asm
@@ -4,8 +4,8 @@ T1LCL = $6004
T1LCH = $6005
ACR = $600b
PCR = $600c
+IFR = $600d
IER = $600e
-IFR = $600f
SER = %00000001
RCLK = %00000010
@@ -106,8 +106,10 @@ nmi:
irq:
pha
- phx
- phy
+ txa
+ pha
+ tya
+ pha
bit T1LCL ; clear timer1 interrupt
bit PORTA ; clear CA1 interrupt
dec TICKS
@@ -115,9 +117,11 @@ irq:
lda #INTERVAL
sta TICKS
inc CURRENT ; increment internal counter
-irq_done:
- ply
- plx
+irq_done:
+ pla
+ tay
+ pla
+ tax
pla
cli
rti