mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 02:18:06 +11:00
core: fix MOVE so it copies the right number of bytes
It copied one too much.
This commit is contained in:
parent
058b85686f
commit
7cd9d29cd8
@ -122,8 +122,8 @@
|
|||||||
( a1 a2 u -- )
|
( a1 a2 u -- )
|
||||||
: MOVE
|
: MOVE
|
||||||
( u ) 0 DO
|
( u ) 0 DO
|
||||||
SWAP DUP I + @ ( a2 a1 x )
|
SWAP DUP I + C@ ( a2 a1 x )
|
||||||
ROT SWAP OVER I + ( a1 a2 x a2 )
|
ROT SWAP OVER I + ( a1 a2 x a2 )
|
||||||
! ( a1 a2 )
|
C! ( a1 a2 )
|
||||||
LOOP
|
LOOP
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user