Use .limhp
This commit is contained in:
parent
13ce9b12ac
commit
9ecf2ad8f8
|
@ -1,30 +1,27 @@
|
|||
.define _brk
|
||||
.define __brk
|
||||
.define __sbrk
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.extern _brk
|
||||
.extern __brk
|
||||
.extern __sbrk
|
||||
.sect .text
|
||||
__sbrk: move.l nd,a0
|
||||
__sbrk: move.l .limhp,a0
|
||||
add.w 4(sp),a0
|
||||
move.w #0x11,d0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l nd,d0
|
||||
bcs Icerror
|
||||
move.l .limhp,d0
|
||||
move.l d0,a0
|
||||
add.w 4(sp),a0
|
||||
move.l a0,nd
|
||||
move.l a0,.limhp
|
||||
rts
|
||||
lcerror: jmp cerror
|
||||
_brk: move.w #0x11,d0
|
||||
Icerror: jmp cerror
|
||||
__brk: move.w #0x11,d0
|
||||
move.l 4(sp),a0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l 4(sp),nd
|
||||
bcs Icerror
|
||||
move.l 4(sp),.limhp
|
||||
clr.l d0
|
||||
rts
|
||||
.sect .data
|
||||
nd: .data4 endbss
|
||||
.sect .text
|
||||
|
|
|
@ -7,24 +7,21 @@
|
|||
.extern _brk
|
||||
.extern _sbrk
|
||||
.sect .text
|
||||
_sbrk: move.l nd,a0
|
||||
_sbrk: move.l .limhp,a0
|
||||
add.w 4(sp),a0
|
||||
move.w #0x11,d0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l nd,d0
|
||||
bcs Icerror
|
||||
move.l .limhp,d0
|
||||
move.l d0,a0
|
||||
add.w 4(sp),a0
|
||||
move.l a0,nd
|
||||
move.l a0,.limhp
|
||||
rts
|
||||
lcerror: jmp cerror
|
||||
Icerror: jmp cerror
|
||||
_brk: move.w #0x11,d0
|
||||
move.l 4(sp),a0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l 4(sp),nd
|
||||
bcs Icerror
|
||||
move.l 4(sp),.limhp
|
||||
clr.l d0
|
||||
rts
|
||||
.sect .data
|
||||
nd: .data4 endbss
|
||||
.sect .text
|
||||
|
|
|
@ -7,25 +7,21 @@
|
|||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
__sbrk: move.l nd,a0
|
||||
__sbrk: move.l .limhp,a0
|
||||
add.l 4(sp),a0
|
||||
move.w #0x11,d0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l nd,d0
|
||||
move.l .limhp,d0
|
||||
move.l d0,a0
|
||||
add.l 4(sp),a0
|
||||
move.l a0,nd
|
||||
move.l a0,.limhp
|
||||
rts
|
||||
lcerror: jmp cerror
|
||||
__brk: move.w #0x11,d0
|
||||
move.l 4(sp),a0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l 4(sp),nd
|
||||
move.l 4(sp),.limhp
|
||||
clr.l d0
|
||||
rts
|
||||
.sect .data
|
||||
nd:
|
||||
.data4 endbss
|
||||
.sect .text
|
||||
|
|
|
@ -7,25 +7,21 @@
|
|||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
_sbrk: move.l nd,a0
|
||||
_sbrk: move.l .limhp,a0
|
||||
add.l 4(sp),a0
|
||||
move.w #0x11,d0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l nd,d0
|
||||
move.l .limhp,d0
|
||||
move.l d0,a0
|
||||
add.l 4(sp),a0
|
||||
move.l a0,nd
|
||||
move.l a0,.limhp
|
||||
rts
|
||||
lcerror: jmp cerror
|
||||
_brk: move.w #0x11,d0
|
||||
move.l 4(sp),a0
|
||||
trap #0
|
||||
bcs lcerror
|
||||
move.l 4(sp),nd
|
||||
move.l 4(sp),.limhp
|
||||
clr.l d0
|
||||
rts
|
||||
.sect .data
|
||||
nd:
|
||||
.data4 endbss
|
||||
.sect .text
|
||||
|
|
Loading…
Reference in a new issue