diff options
Diffstat (limited to '069allocate.subx')
-rw-r--r-- | 069allocate.subx | 11 |
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 |