improved sbrk

This commit is contained in:
ceriel 1988-04-14 10:45:42 +00:00
parent 4114d27f17
commit 5bfe8b93f6

View File

@ -37,7 +37,11 @@
loc 0
ste .2
lol 0
ads EM_WSIZE
ads EM_WSIZE ; this is the new heap pointer, but watch out for overflow!
dup EM_WSIZE
lor 2
cmp ; compare with old heap pointer
zlt *1
str 2 ; The - possibly - occurring trap is caught
lae .1
loi EM_PSIZE