Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
collapseos
mirror da
https://github.com/hsoft/collapseos.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Make C<* into a switch word
Slightly larger binary, but clearer code and slightly faster.
master
Virgil Dupras
3 anni fa
parent
5e13dcedf3
commit
038c25957b
4 ha cambiato i file
con
5 aggiunte
e
6 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-4
blk/364
+1
-1
blk/390
+1
-1
blk/396
BIN
cvm/forth.bin
+ 3
- 4
blk/364
Vedi File
@@ -1,8 +1,7 @@
: C<? 0x06 RAM+ @ ;
SYSVARS 0x0c + :** C<*
: C<
0x08 RAM+ @ ( 08 == C<* override )
?DUP NOT IF 0x0c RAM+ @ THEN ( 0c == C<* )
EXECUTE
;
0x08 RAM+ ( C<* override ) @
?DUP NOT IF C<* ELSE EXECUTE THEN ;
: , H@ ! H@ 2+ HERE ! ;
: C, H@ C! H@ 1+ HERE ! ;
+ 1
- 1
blk/390
Vedi File
@@ -5,6 +5,6 @@
the last typed 0x0a and one for the following NULL. )
IN) IN( - ALLOT
(infl)
['] RDLN<
0x0c RAM+
!
['] RDLN<
['] C<* **
!
1 0x06 RAM+ ! ( 06 == C<? )
;
+ 1
- 1
blk/396
Vedi File
@@ -7,7 +7,7 @@
['] (key) ['] KEY **!
['] CRLF ['] NL **!
( 0c == C<* )
['] (boot<)
0x0c RAM+
!
['] (boot<)
['] C<* **
!
['] C@ ['] A@ ! ['] C! ['] A! **!
( boot< always has a char waiting. 06 == C<?* )
1 0x06 RAM+ ! INTERPRET
BIN
cvm/forth.bin
Vedi File
Write
Preview
Loading…
Annulla
Salva