1987-02-02 10:25:38 +00:00
|
|
|
.define _brk
|
|
|
|
.define _sbrk
|
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
1990-01-22 13:09:29 +00:00
|
|
|
_sbrk: move.l .limhp,a0
|
1987-02-02 10:25:38 +00:00
|
|
|
add.l 4(sp),a0
|
|
|
|
move.l #0x11,d0
|
|
|
|
trap #0
|
1990-01-22 13:09:29 +00:00
|
|
|
bcs Icerror
|
|
|
|
move.l .limhp,d0
|
1987-02-02 10:25:38 +00:00
|
|
|
move.l d0,a0
|
|
|
|
add.l 4(sp),a0
|
1990-01-22 13:09:29 +00:00
|
|
|
move.l a0,.limhp
|
1987-02-02 10:25:38 +00:00
|
|
|
rts
|
1990-01-22 13:09:29 +00:00
|
|
|
Icerror: jmp cerror
|
1987-02-02 10:25:38 +00:00
|
|
|
_brk: move.l #0x11,d0
|
|
|
|
move.l 4(sp),a0
|
|
|
|
trap #0
|
1990-01-22 13:09:29 +00:00
|
|
|
bcs Icerror
|
|
|
|
move.l 4(sp),.limhp
|
1987-02-02 10:25:38 +00:00
|
|
|
clr.l d0
|
|
|
|
rts
|