about summary refs log tree commit diff stats
path: root/subx/apps/subx-common.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-20 09:48:57 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-20 09:48:57 -0700
commit47a9d22a059fc7baf52dca8c7942dbe01619df27 (patch)
treec8488fe84a23157f50167f3e2986fecbba0bbb33 /subx/apps/subx-common.subx
parentc37b575a04e47d7c84e5274b64054902489471a9 (diff)
downloadmu-47a9d22a059fc7baf52dca8c7942dbe01619df27.tar.gz
5426
Diffstat (limited to 'subx/apps/subx-common.subx')
-rw-r--r--subx/apps/subx-common.subx15
1 files changed, 15 insertions, 0 deletions
diff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx
index e3af9381..a5d8b037 100644
--- a/subx/apps/subx-common.subx
+++ b/subx/apps/subx-common.subx
@@ -1,5 +1,20 @@
 # some common helpers shared by phases of the SubX converter
 
+# - buffer sizes shared by all phases
+== data
+
+# maximum memory available for allocation
+Heap-size:
+  0x100000/imm32/1MB
+
+# maximum size of a single segment
+Segment-size:
+  0x8000/imm32/32KB
+
+# maximum size of input textual stream (spanning all segments)
+Input-size:
+  0x10000/imm32/64KB  # should be enough for everyone
+
 == code
 #   instruction                     effective address                                                   register    displacement    immediate
 # . op          subop               mod             rm32          base        index         scale       r32