ack/mach/m68k2/libem/shp.s

25 lines
315 B
ArmAsm
Raw Normal View History

1984-12-14 15:41:14 +00:00
.define .strhp
.text
.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
move.l d0,.limhp
move.l a0,-(sp)
1984-12-14 15:41:14 +00:00
move.l d0,-(sp)
jsr _brk
tst.l (sp)+
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)
jmp .fat