From d7018a10df060b8f93c314555e4206a5c53caf1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 30 May 2022 23:43:52 +0200 Subject: [PATCH] Documentation --- src/waforth.wat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/waforth.wat b/src/waforth.wat index 18b8f8c..f602f3f 100644 --- a/src/waforth.wat +++ b/src/waforth.wat @@ -73,8 +73,8 @@ ;; ;; Memory size: - ;; MEMORY_SIZE := 104857600 (100*1024*1024) - ;; MEMORY_SIZE_PAGES := 1600 (MEMORY_SIZE / 65536) + ;; MEMORY_SIZE := 104857600 (100*1024*1024) + ;; MEMORY_SIZE_PAGES := 1600 (MEMORY_SIZE / 65536) ;; ;; Memory layout: ;; INPUT_BUFFER_BASE := 0x300 @@ -83,11 +83,12 @@ ;; MODULE_HEADER_BASE := 0x1000 ;; RETURN_STACK_BASE := 0x2000 ;; STACK_BASE := 0x10000 - ;; DATA_SPACE_BASE := 0x20000 + ;; DATA_SPACE_BASE := 0x20000 ;; - ;; PICTURED_OUTPUT_OFFSET := 0x200 (offset from HERE; filled backward) - ;; WORD_OFFSET := 0x200 (offset from HERE) - ;; PAD_OFFSET := 0x304 (offset from HERE) + ;; Transient regions, offset from HERE: + ;; PICTURED_OUTPUT_OFFSET := 0x200 (filled backward) + ;; WORD_OFFSET := 0x200 + ;; PAD_OFFSET := 0x304 (WORD_OFSET + 1 + 0xFF) ;; (memory (export "memory") 0x640 (; = MEMORY_SIZE_PAGES ;))