aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/bounds.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/words/bounds.asm')
-rw-r--r--amforth-6.5/common/words/bounds.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/amforth-6.5/common/words/bounds.asm b/amforth-6.5/common/words/bounds.asm
new file mode 100644
index 0000000..0dd0555
--- /dev/null
+++ b/amforth-6.5/common/words/bounds.asm
@@ -0,0 +1,22 @@
+; ( addr len -- addr+len addr )
+; Tools
+; convert a string to an address range
+
+.if cpu_msp430==1
+ HEADER(XT_BOUNDS,6,"bounds",DOCOLON)
+.endif
+
+.if cpu_avr8==1
+VE_BOUNDS:
+ .dw $ff06
+ .db "bounds"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_BOUNDS
+XT_BOUNDS:
+ .dw DO_COLON
+PFA_BOUNDS:
+.endif
+ .dw XT_OVER
+ .dw XT_PLUS
+ .dw XT_SWAP
+ .dw XT_EXIT