aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/core/move.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/core/move.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/core/move.frt5
1 files changed, 5 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/core/move.frt b/amforth-6.5/common/lib/forth2012/core/move.frt
new file mode 100644
index 0000000..795a8ef
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/core/move.frt
@@ -0,0 +1,5 @@
+\ respect overlapping memory regions a choose
+\ the proper cmove
+: move
+ >r 2dup u< if r> cmove> else r> cmove then
+;