about summary refs log tree commit diff stats
path: root/069allocate.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-19 16:32:10 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-19 16:32:10 -0700
commit8a73e0d19a1d17a21512740df51b9e65b6c6ddad (patch)
tree7c38b4c2f9fa222a085fc1397ca534b616216ba3 /069allocate.subx
parentdfbe1550872256f597161de72a411b92405284e1 (diff)
downloadmu-8a73e0d19a1d17a21512740df51b9e65b6c6ddad.tar.gz
5673 - standardize a few knobs
Diffstat (limited to '069allocate.subx')
-rw-r--r--069allocate.subx11
1 files changed, 8 insertions, 3 deletions
diff --git a/069allocate.subx b/069allocate.subx
index f7063d2e..af3a7885 100644
--- a/069allocate.subx
+++ b/069allocate.subx
@@ -16,14 +16,19 @@
 # very same 'allocate' helper. They just need a new allocation descriptor for
 # their book-keeping.
 
-# A default allocation descriptor for programs to use.
 == data
+
+# A default allocation descriptor for programs to use.
 Heap:
   # curr
   0/imm32
   # limit
   0/imm32
 
+# a reasonable default
+Heap-size:
+  0x200000/imm32/2MB
+
 == code
 #   instruction                     effective address                                                   register    displacement    immediate
 # . op          subop               mod             rm32          base        index         scale       r32
@@ -33,10 +38,10 @@ Heap:
 
 Entry:
     # initialize heap
-    # . Heap = new-segment(64KB)
+    # . Heap = new-segment(Heap-size)
     # . . push args
     68/push  Heap/imm32
-    68/push  0x10000/imm32/64KB
+    68/push  Heap-size/imm32
     # . . call
     e8/call  new-segment/disp32
     # . . discard args