corrected brk and sbrk somewhat
This commit is contained in:
parent
2e009ecfff
commit
5891ec12a0
2 changed files with 3 additions and 3 deletions
|
@ -28,14 +28,14 @@
|
||||||
|
|
||||||
exp $brk
|
exp $brk
|
||||||
pro $brk,0
|
pro $brk,0
|
||||||
lal 0
|
|
||||||
loi EM_PSIZE
|
|
||||||
lpi $ctch
|
lpi $ctch
|
||||||
sig
|
sig
|
||||||
lae .1
|
lae .1
|
||||||
sti EM_PSIZE
|
sti EM_PSIZE
|
||||||
loc 0
|
loc 0
|
||||||
ste .2
|
ste .2
|
||||||
|
lal 0
|
||||||
|
loi EM_PSIZE
|
||||||
str 2 ; The - possibly - occurring trap is caught
|
str 2 ; The - possibly - occurring trap is caught
|
||||||
lae .1
|
lae .1
|
||||||
loi EM_PSIZE
|
loi EM_PSIZE
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
ste .2
|
ste .2
|
||||||
lol 0
|
lol 0
|
||||||
ads EM_WSIZE ; this is the new heap pointer, but watch out for overflow!
|
ads EM_WSIZE ; this is the new heap pointer, but watch out for overflow!
|
||||||
dup EM_WSIZE
|
dup EM_PSIZE
|
||||||
lor 2
|
lor 2
|
||||||
cmp ; compare with old heap pointer
|
cmp ; compare with old heap pointer
|
||||||
zlt *1
|
zlt *1
|
||||||
|
|
Loading…
Add table
Reference in a new issue