ack/plat/msdos386/libsys/brk.s
David Given dc1f69be83 Most of read and write now works; filename-based operations partially work; but
there's a nasty memory corruption somewhere which needs investigating.
2022-08-19 00:08:57 +02:00

19 lines
200 B
ArmAsm

! Declare segments (the order is important).
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.define _brk
_brk:
mov ebx, esp
mov eax, 1*4(ebx)
callf (realloc_ptr)
xor eax, eax
ret