aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/douser.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/douser.asm')
-rw-r--r--amforth-6.5/avr8/words/douser.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/douser.asm b/amforth-6.5/avr8/words/douser.asm
new file mode 100644
index 0000000..1347651
--- /dev/null
+++ b/amforth-6.5/avr8/words/douser.asm
@@ -0,0 +1,18 @@
+; ( -- addr )
+; System
+; runtime part of user
+;VE_DOUSER:
+; .dw $ff06
+; .db "(user)"
+; .dw VE_HEAD
+; .set VE_HEAD = VE_DOUSER
+XT_DOUSER:
+ .dw PFA_DOUSER
+PFA_DOUSER:
+ savetos
+ movw zl, wl
+ adiw zl, 1
+ readflashcell tosl,tosh
+ add tosl, upl
+ adc tosh, uph
+ jmp_ DO_NEXT