summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-01-22 13:05:14 +1100
committerkitty <nepeta@canaglie.net>2026-01-22 13:05:14 +1100
commitfdf1935e2cc4142bf1585a78844f5b7df0e1cd8f (patch)
treee85a145573843cb7c879828e081e2a414d90e13a /readme.md
parent9ddee3df23c1abc39a5e0e0605c4f815db113e3e (diff)
some macros
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/readme.md b/readme.md
index d77c014..64af573 100644
--- a/readme.md
+++ b/readme.md
@@ -12,13 +12,13 @@ to a DTC forth instead.
## dictionary
the dictionary follows a fairly standard format.
-| field | size |
-| :---- | :--- |
-| link to previous | 8 bytes |
-| flag | 1 byte |
-| string length | 2 bytes |
-| string | variable length |
-| code | variable length |
+| field | size | forth name |
+| :---- | :--- | :--------- |
+| link to previous | 8 bytes | LFA (link field address) |
+| flag | 1 byte | FFA (flag field address) |
+| string length | 2 bytes | NFA (name field address) |
+| string | variable length | still NFA |
+| code | variable length | CFA (code field address) |
probably, some bitmask antics could be done to store the string length
and flags together. but alternatively: no.
@@ -48,7 +48,7 @@ so a wonky but hopefully not too slow solution is to compile
- `mov r11, [cfa]` = `94 BB [CFA]`
- `call r11` = `41 FF D3`
-# Some Links
+## Some Links
- starting forth part 1: http://www.bradrodriguez.com/papers/moving1.htm
- a forum thread about determining empty stack with TOS register: http://forum.6502.org/viewtopic.php?t=8424