Bladeren bron

forth: take advantage of the new [] mode

pull/95/head
Virgil Dupras 4 jaren geleden
bovenliggende
commit
f40c14715e
2 gewijzigde bestanden met toevoegingen van 10 en 2 verwijderingen
  1. BIN
      emul/forth/z80c.bin
  2. +10
    -2
      forth/icore.fs

BIN
emul/forth/z80c.bin Bestand weergeven


+ 10
- 2
forth/icore.fs Bestand weergeven

@@ -29,13 +29,21 @@

This means, of course, that any word compiling a _c word
can't be executed immediately.

Also note that because of that "_c" mechanism, it might
take two rounds of bootstrapping before the compiled
z80c.bin file is "stabilized". That's because the 2nd time
around, the recorded offset will have changed.
)

: _c
['] ROT
[
' ROT
6 - ( header )
['] _bend
' _bend
- ( our offset )
LITN
]
' ( get word )
-^ ( apply offset )
, ( write! )


Laden…
Annuleren
Opslaan