aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/up.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/up.asm')
-rw-r--r--amforth-6.5/avr8/words/up.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/up.asm b/amforth-6.5/avr8/words/up.asm
new file mode 100644
index 0000000..0edfc01
--- /dev/null
+++ b/amforth-6.5/avr8/words/up.asm
@@ -0,0 +1,29 @@
+; ( -- addr )
+; System Variable
+; get user area pointer
+VE_UP_FETCH:
+ .dw $ff03
+ .db "up@",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_UP_FETCH
+XT_UP_FETCH:
+ .dw PFA_UP_FETCH
+PFA_UP_FETCH:
+ savetos
+ movw tosl, upl
+ jmp_ DO_NEXT
+
+; ( addr -- )
+; System Variable
+; set user area pointer
+VE_UP_STORE:
+ .dw $ff03
+ .db "up!",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_UP_STORE
+XT_UP_STORE:
+ .dw PFA_UP_STORE
+PFA_UP_STORE:
+ movw upl, tosl
+ loadtos
+ jmp_ DO_NEXT