diff --git a/emul/stage.c b/emul/stage.c index 2e7d7ba..b6cef1d 100644 --- a/emul/stage.c +++ b/emul/stage.c @@ -113,7 +113,9 @@ int main(int argc, char *argv[]) #ifndef DEBUG // We're done, now let's spit dict data if (start_here == 0) { - start_here = sizeof(KERNEL); + // No starting offset? Let's use LATEST + start_here = m->mem[0x08]; + start_here += m->mem[0x09] << 8; } for (int i=start_here; imem[i]); diff --git a/emul/stage1.fs b/emul/stage1.fs index cf391dd..a2ab67d 100644 --- a/emul/stage1.fs +++ b/emul/stage1.fs @@ -1,5 +1,4 @@ CURRENT @ HERE ! -HERE @ 256 /MOD 2 PC! 2 PC! : EMIT 0 PC! ; : KEY 0 PC@ ; CURRENT @ 12 RAM+ !