summary refs log tree commit diff
path: root/exit-code.asm
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-04-25 01:15:46 -0700
committerIrene Knapp <ireneista@irenes.space>2026-04-25 03:07:25 -0700
commitfb64087b6097038430e1f26816b4b6d5a8f4dd87 (patch)
tree2e947930d34f6b34d8667f514b95d330b4022bd8 /exit-code.asm
parentc55d4666c870a54655080b5e78e9fb37f4b81d9f (diff)
implement "quit", the top level word
this is a real milestone, wow.

this required changing a few things in "interpret".

first and simplest, it wasn't properly dropping the word string when processing a number in compile mode.

second, "word" wasn't properly skipping whitespace - it was still becoming part of the word, which resulted in lookup failures.

third and most interesting, "interpret" no longer loops, it relies on "quit" to do that. that means that instead of cold_start handing off to "interpret" as it previously did, cold_start now hands off to a trampoline it creates that calls "interpret" just enough times to create and invoke "quit".

Force-Push: yes
Change-Id: Iff826c6ef7e58c1e014688ae7508ab13e89c3c28
Diffstat (limited to 'exit-code.asm')
0 files changed, 0 insertions, 0 deletions