From 0d66e779765da9888da491c5ac85c4783df45b65 Mon Sep 17 00:00:00 2001 From: andromeda Date: Sun, 8 Mar 2026 10:56:20 +0100 Subject: get tokenising working a bit :p also some fixes and semantics --- twasm/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'twasm/README.md') diff --git a/twasm/README.md b/twasm/README.md index 91a7eb3..de73e90 100644 --- a/twasm/README.md +++ b/twasm/README.md @@ -21,8 +21,6 @@ I want to compile Bootler and Twasm with the Twasm assembler | stack (rsp) | +------------------------+ | input | -+------------------------+ <- this is lined up to a sector -| | <- and this is less than a sector +------------------------+ | assembler | +------ 0x00010000 ------+ @@ -37,11 +35,11 @@ each word represents a token on the token table. each token gets loaded into the token table with the following form: ``` -+----------+-----------------------+ -| 31 16 | 15 0 | -+----------+-----------------------+ -| reserved | token id | -+----------+-----------------------+ ++----------+----------+ +| 31 16 | 15 0 | ++----------+----------+ +| reserved | token id | ++----------+----------+ ``` ### token IDs @@ -152,4 +150,5 @@ supported tokens are listed below | - | 0x0063 | | | * | 0x0064 | | | / | 0x0065 | | +| | 0xFEXX | token terminator byte as token, where `XX` is the byte | | | 0xFFFF | unrecognised token | -- cgit v1.3.1