aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/msp430/words/do-constant.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/msp430/words/do-constant.asm')
-rw-r--r--amforth-6.5/msp430/words/do-constant.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/amforth-6.5/msp430/words/do-constant.asm b/amforth-6.5/msp430/words/do-constant.asm
new file mode 100644
index 0000000..d700349
--- /dev/null
+++ b/amforth-6.5/msp430/words/do-constant.asm
@@ -0,0 +1,10 @@
+; DOCREATE's action is for a table in RAM.
+; DOROM is the code action for a table in ROM;
+; it returns the address of the parameter field.
+
+DOROM: ; -- a-addr ; Table in ROM: get PFA into TOS
+PFA_DOCONSTANT:
+ SUB #2,PSP
+ MOV TOS,0(PSP)
+ MOV W,TOS
+ NEXT