This commit is contained in:
Kartik Agaram 2019-07-09 16:27:48 -07:00
parent dc7066c7bf
commit eb4b45db40

View File

@ -397,14 +397,6 @@ compute-offsets: # in : (address buffered-file), segments : (address stream {st
# segment-offset = 0
b8/copy-to-EAX 0/imm32
89/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX compute-offsets:segment-offset/disp32 # copy EAX to *segment-offset
# new-segment(1024, heap)
# . . push args
68/push Heap/imm32
68/push 0x400/imm32
# . . call
e8/call new-segment/disp32
# . . discard args
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP
# line/ECX = new-stream(heap, 512, 1)
68/push 1/imm32
68/push 0x200/imm32