aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/msp430/words/j.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/msp430/words/j.asm')
-rw-r--r--amforth-6.5/msp430/words/j.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/amforth-6.5/msp430/words/j.asm b/amforth-6.5/msp430/words/j.asm
new file mode 100644
index 0000000..74e9d58
--- /dev/null
+++ b/amforth-6.5/msp430/words/j.asm
@@ -0,0 +1,9 @@
+
+;C J -- n R: 4*sys -- 4*sys
+;C get the second loop index
+ CODEHEADER(XT_J,1,"j")
+ SUB #2,PSP ; make room in TOS
+ MOV TOS,0(PSP)
+ MOV @RSP,TOS ; index = loopctr - fudge
+ SUB 2(RSP),TOS
+ NEXT