adapted so that _brk routine may update .limhp
This commit is contained in:
parent
4c7f63ee6c
commit
36dbf24131
1 changed files with 1 additions and 2 deletions
|
@ -13,11 +13,10 @@ EHEAP=17
|
||||||
blt 1f
|
blt 1f
|
||||||
add.l #0x400, d1
|
add.l #0x400, d1
|
||||||
and.l #~0x3ff, d1
|
and.l #~0x3ff, d1
|
||||||
move.l d1, (.limhp)
|
|
||||||
move.l d1, -(sp)
|
move.l d1, -(sp)
|
||||||
jsr (_brk) ! allocate 1K bytes of extra storage
|
jsr (_brk) ! allocate 1K bytes of extra storage
|
||||||
add.l #4, sp
|
|
||||||
bcs 2f
|
bcs 2f
|
||||||
|
move.l (sp)+,(.limhp)
|
||||||
1:
|
1:
|
||||||
move.l (sp)+, (.reghp) ! store new value
|
move.l (sp)+, (.reghp) ! store new value
|
||||||
jmp (a0) ! return
|
jmp (a0) ! return
|
||||||
|
|
Loading…
Add table
Reference in a new issue