1984-12-14 15:41:14 +00:00
|
|
|
.define .strhp
|
1985-06-04 10:57:42 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1984-12-14 15:41:14 +00:00
|
|
|
|
1985-06-04 10:57:42 +00:00
|
|
|
.sect .text
|
1984-12-14 15:41:14 +00:00
|
|
|
.strhp:
|
|
|
|
move.l (sp)+,a0
|
|
|
|
move.l (sp)+,d0 ! heap pointer
|
|
|
|
move.l d0,.reghp
|
|
|
|
cmp.l .limhp,d0
|
|
|
|
bmi 1f
|
|
|
|
add.l #0x400,d0
|
|
|
|
and.l #~0x3ff,d0
|
1985-01-17 10:33:23 +00:00
|
|
|
move.l a0,-(sp)
|
1984-12-14 15:41:14 +00:00
|
|
|
move.l d0,-(sp)
|
1991-04-25 10:49:28 +00:00
|
|
|
move.l d0,.limhp
|
1991-09-02 17:47:41 +00:00
|
|
|
jsr __brk
|
1984-12-14 15:41:14 +00:00
|
|
|
tst.l (sp)+
|
1985-01-17 10:33:23 +00:00
|
|
|
move.l (sp)+,a0
|
1984-12-14 15:41:14 +00:00
|
|
|
tst.w d0
|
|
|
|
bne 2f
|
|
|
|
1:
|
|
|
|
jmp (a0)
|
|
|
|
2:
|
|
|
|
move.w #EHEAP,-(sp)
|
1988-04-11 11:27:37 +00:00
|
|
|
jsr .trp
|
|
|
|
jmp (a0)
|