1984-12-14 15:52:15 +00:00
|
|
|
.define _brk
|
|
|
|
.define _sbrk
|
1985-06-04 11:18:09 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1984-12-14 15:52:15 +00:00
|
|
|
.extern _brk
|
|
|
|
.extern _sbrk
|
1985-06-04 11:18:09 +00:00
|
|
|
.sect .text
|
1990-01-22 14:39:47 +00:00
|
|
|
_sbrk: move.l .limhp,a0
|
1985-01-23 16:31:51 +00:00
|
|
|
add.w 4(sp),a0
|
1984-12-14 15:52:15 +00:00
|
|
|
move.w #0x11,d0
|
|
|
|
trap #0
|
1990-01-22 14:39:47 +00:00
|
|
|
bcs Icerror
|
|
|
|
move.l .limhp,d0
|
1985-01-23 16:31:51 +00:00
|
|
|
move.l d0,a0
|
|
|
|
add.w 4(sp),a0
|
1990-01-22 14:39:47 +00:00
|
|
|
move.l a0,.limhp
|
1984-12-14 15:52:15 +00:00
|
|
|
rts
|
1990-01-22 14:39:47 +00:00
|
|
|
Icerror: jmp cerror
|
1984-12-14 15:52:15 +00:00
|
|
|
_brk: move.w #0x11,d0
|
|
|
|
move.l 4(sp),a0
|
|
|
|
trap #0
|
1990-01-22 14:39:47 +00:00
|
|
|
bcs Icerror
|
|
|
|
move.l 4(sp),.limhp
|
1984-12-14 15:52:15 +00:00
|
|
|
clr.l d0
|
|
|
|
rts
|