1990-01-22 11:14:56 +00:00
|
|
|
.define __brk
|
|
|
|
.define __sbrk
|
|
|
|
.extern __brk
|
|
|
|
.extern __sbrk
|
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
1990-01-22 14:39:47 +00:00
|
|
|
__sbrk: move.l .limhp,a0
|
1990-01-22 11:14:56 +00:00
|
|
|
add.l 4(sp),a0
|
|
|
|
move.w #0x11,d0
|
|
|
|
trap #0
|
|
|
|
bcs lcerror
|
1990-01-22 14:39:47 +00:00
|
|
|
move.l .limhp,d0
|
1990-01-22 11:14:56 +00:00
|
|
|
move.l d0,a0
|
|
|
|
add.l 4(sp),a0
|
1990-01-22 14:39:47 +00:00
|
|
|
move.l a0,.limhp
|
1990-01-22 11:14:56 +00:00
|
|
|
rts
|
|
|
|
lcerror: jmp cerror
|
|
|
|
__brk: move.w #0x11,d0
|
|
|
|
move.l 4(sp),a0
|
|
|
|
trap #0
|
|
|
|
bcs lcerror
|
1990-01-22 14:39:47 +00:00
|
|
|
move.l 4(sp),.limhp
|
1990-01-22 11:14:56 +00:00
|
|
|
clr.l d0
|
|
|
|
rts
|