diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-04-25 23:02:47 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-04-25 23:07:08 -0700 |
| commit | 51ffe53f3f11fdb94ee5e360029ab4181ff4cf10 (patch) | |
| tree | 6e221a18dcf03c1a888154a59f07064e69af5e4f /hello.asm | |
| parent | fb64087b6097038430e1f26816b4b6d5a8f4dd87 (diff) | |
implement a whole bunch of Forth words, most notably "if"
we decided to do flow control in a fun suffix-y way. so we introduced words { and } which track code blocks while compiling them, and the new word "if" uses memmove to slide that block around to insert a branch before it.
memmove is also new, implemented in flatassembler
also "if" relies on "'" which itself wants to be able to quote the word "lit", so the flatassembler word "literal" is introduced to break the cycle
Force-Push: yes
Change-Id: Iff17a15a1e748fe536e73ad05b1d4b06725a9f78
Diffstat (limited to 'hello.asm')
0 files changed, 0 insertions, 0 deletions