ack/mach/m68k4/libem/shp.s

25 lines
305 B
ArmAsm
Raw Normal View History

1985-02-07 22:06:32 +00:00
.define .strhp
.sect .text
.sect .rom
.sect .data
.sect .bss
1985-02-07 22:06:32 +00:00
.sect .text
1985-02-07 22:06:32 +00:00
.strhp:
move.l (sp)+,a0
1985-02-07 22:06:32 +00:00
move.l (sp)+,d0 ! heap pointer
move.l d0,.reghp
cmp.l .limhp,d0
blt 1f
add.l #0x400,d0
and.l #~0x3ff,d0
move.l d0,.limhp
cmp.l d0,sp
ble 2f
1:
jmp (a0)
1985-02-07 22:06:32 +00:00
2:
move.w #EHEAP,-(sp)
jmp .fat
.align 2