Diese Webseite funktioniert besser mit JavaScript.
Startseite
Erkunden
lain.church
Hilfe
Registrieren
Anmelden
izaya
/
collapseos
Mirror von
https://github.com/hsoft/collapseos.git
Beobachten
1
Favorisieren
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Aktivität
Quellcode durchsuchen
core: add word "MOVE"
pull/102/head
Virgil Dupras
vor 4 Jahren
Ursprung
6f9d0a98c4
Commit
058b85686f
2 geänderte Dateien
mit
11 neuen
und
0 gelöschten
Zeilen
Geteilte Ansicht
Diff-Optionen
Statistiken anzeigen
Patch-Datei herunterladen
Vergleichs-Datei herunterladen
+2
-0
dictionary.txt
+9
-0
forth/core.fs
+ 2
- 0
dictionary.txt
Datei anzeigen
@@ -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
Datei anzeigen
@@ -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
;
Verfassen
Vorschau
Laden…
Abbrechen
Speichern