Explorar el Código

core: fix MOVE so it copies the right number of bytes

It copied one too much.
pull/102/head
Virgil Dupras hace 4 años
padre
commit
7cd9d29cd8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      forth/core.fs

+ 2
- 2
forth/core.fs Ver fichero

@@ -122,8 +122,8 @@
( a1 a2 u -- )
: MOVE
( u ) 0 DO
SWAP DUP I + @ ( a2 a1 x )
SWAP DUP I + C@ ( a2 a1 x )
ROT SWAP OVER I + ( a1 a2 x a2 )
! ( a1 a2 )
C! ( a1 a2 )
LOOP
;

Cargando…
Cancelar
Guardar