aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/msp430/words/up.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/msp430/words/up.asm')
-rw-r--r--amforth-6.5/msp430/words/up.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/amforth-6.5/msp430/words/up.asm b/amforth-6.5/msp430/words/up.asm
new file mode 100644
index 0000000..a3674d1
--- /dev/null
+++ b/amforth-6.5/msp430/words/up.asm
@@ -0,0 +1,11 @@
+
+CODEHEADER(XT_UP_FETCH,3,"up@")
+ SUB #2,PSP
+ MOV TOS, 0(PSP)
+ MOV UP,TOS
+ NEXT
+
+CODEHEADER(XT_UP_STORE,3,"up!")
+ MOV TOS,UP
+ MOV @PSP+,TOS
+ NEXT