aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/core.go b/core.go
index 41b4fea..df89425 100644
--- a/core.go
+++ b/core.go
@@ -19,7 +19,12 @@ type Console interface {
// Core of J1 Forth CPU
//
-// memory: 0x2000 words (16k) addressed by byte
+// 33 deep × 16 bit data stack
+// 32 deep × 16 bit return stack
+// 13 bit program counter
+// memory is 16 bit wide and addressed by bytes
+// 0..0x3fff RAM, 0x4000..0x7fff mem-mapped I/O
+//
type Core struct {
memory [0x2000]uint16 // 0..0x3fff RAM, 0x4000..0x7fff mem-mapped I/O
pc uint16 // 13 bit