Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
lain.church
Aide
S'inscrire
Connexion
izaya
/
collapseos
miroir de
https://github.com/hsoft/collapseos.git
Suivre
1
Ajouter aux favoris
1
Bifurcation
0
Code
Tickets
0
Versions
0
Wiki
Activité
Parcourir la source
core: add word "MOVE"
pull/102/head
Virgil Dupras
il y a 4 ans
Parent
6f9d0a98c4
révision
058b85686f
2 fichiers modifiés
avec
11 ajouts
et
0 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+2
-0
dictionary.txt
+9
-0
forth/core.fs
+ 2
- 0
dictionary.txt
Voir le fichier
@@ -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
Voir le fichier
@@ -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
;
Écrire
Aperçu
Chargement…
Annuler
Enregistrer