aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/int-fetch.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/int-fetch.asm')
-rw-r--r--amforth-6.5/avr8/words/int-fetch.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/int-fetch.asm b/amforth-6.5/avr8/words/int-fetch.asm
new file mode 100644
index 0000000..f0c713a
--- /dev/null
+++ b/amforth-6.5/avr8/words/int-fetch.asm
@@ -0,0 +1,16 @@
+; ( i -- xt )
+; Interrupt
+; fetches XT from interrupt vector i
+VE_INTFETCH:
+ .dw $ff04
+ .db "int@"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_INTFETCH
+XT_INTFETCH:
+ .dw DO_COLON
+PFA_INTFETCH:
+ .dw XT_DOLITERAL
+ .dw intvec
+ .dw XT_PLUS
+ .dw XT_FETCHE
+ .dw XT_EXIT