使用 JavaScript能使本网站更好的工作。
首页
探索
lain.church
帮助
注册
登录
izaya
/
collapseos
镜像自地址
https://github.com/hsoft/collapseos.git
关注
1
点赞
1
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
core: add word "MOVE"
pull/102/head
Virgil Dupras
4 年前
父节点
6f9d0a98c4
当前提交
058b85686f
共有
2 个文件被更改
,包括
11 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-0
dictionary.txt
+9
-0
forth/core.fs
+ 2
- 0
dictionary.txt
查看文件
@@ -98,6 +98,8 @@ C! c a -- Store byte c in address a
CURRENT -- a Set a to wordref of last added entry.
HERE -- a Push HERE's address
H@ -- a HERE @
MOVE a1 a2 u -- Copy u bytes from a1 to a2, starting with a1, going
up.
*** Arithmetic / Bits ***
+ 9
- 0
forth/core.fs
查看文件
@@ -118,3 +118,12 @@
( Set up initial SYSVNXT value, which is 2 bytes after its
own address )
46 RAM+ DUP 2 + SWAP !
( a1 a2 u -- )
: MOVE
( u ) 0 DO
SWAP DUP I + @ ( a2 a1 x )
ROT SWAP OVER I + ( a1 a2 x a2 )
! ( a1 a2 )
LOOP
;
撰写
预览
正在加载...
取消
保存