2022-08-17 22:24:08 +00:00
|
|
|
! Declare segments (the order is important).
|
|
|
|
|
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
|
|
|
|
.sect .text
|
|
|
|
|
|
|
|
.define _brk
|
|
|
|
_brk:
|
2022-08-18 22:08:57 +00:00
|
|
|
mov ebx, esp
|
|
|
|
mov eax, 1*4(ebx)
|
2022-08-17 22:24:08 +00:00
|
|
|
callf (realloc_ptr)
|
|
|
|
xor eax, eax
|
|
|
|
ret
|
|
|
|
|
|
|
|
|