aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/irqcnt.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/irqcnt.asm')
-rw-r--r--amforth-6.5/avr8/words/irqcnt.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/irqcnt.asm b/amforth-6.5/avr8/words/irqcnt.asm
new file mode 100644
index 0000000..edb8a39
--- /dev/null
+++ b/amforth-6.5/avr8/words/irqcnt.asm
@@ -0,0 +1,15 @@
+; ( i -- xt )
+; Interrupt
+; fetches XT from interrupt vector i
+VE_IRQCNTADDR:
+ .dw $ff06
+ .db "irq[]#"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_IRQCNTADDR
+XT_IRQCNTADDR:
+ .dw DO_COLON
+PFA_IRQCNTADDR:
+ .dw XT_DOLITERAL
+ .dw intcnt
+ .dw XT_PLUS
+ .dw XT_EXIT