Use .limhp

This commit is contained in:
ceriel 1990-01-22 14:39:47 +00:00
parent 13ce9b12ac
commit 9ecf2ad8f8
4 changed files with 25 additions and 39 deletions

View file

@ -1,30 +1,27 @@
.define _brk .define __brk
.define __sbrk .define __sbrk
.sect .text .sect .text
.sect .rom .sect .rom
.sect .data .sect .data
.sect .bss .sect .bss
.extern _brk .extern __brk
.extern __sbrk .extern __sbrk
.sect .text .sect .text
__sbrk: move.l nd,a0 __sbrk: move.l .limhp,a0
add.w 4(sp),a0 add.w 4(sp),a0
move.w #0x11,d0 move.w #0x11,d0
trap #0 trap #0
bcs lcerror bcs Icerror
move.l nd,d0 move.l .limhp,d0
move.l d0,a0 move.l d0,a0
add.w 4(sp),a0 add.w 4(sp),a0
move.l a0,nd move.l a0,.limhp
rts rts
lcerror: jmp cerror Icerror: jmp cerror
_brk: move.w #0x11,d0 __brk: move.w #0x11,d0
move.l 4(sp),a0 move.l 4(sp),a0
trap #0 trap #0
bcs lcerror bcs Icerror
move.l 4(sp),nd move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
nd: .data4 endbss
.sect .text

View file

@ -7,24 +7,21 @@
.extern _brk .extern _brk
.extern _sbrk .extern _sbrk
.sect .text .sect .text
_sbrk: move.l nd,a0 _sbrk: move.l .limhp,a0
add.w 4(sp),a0 add.w 4(sp),a0
move.w #0x11,d0 move.w #0x11,d0
trap #0 trap #0
bcs lcerror bcs Icerror
move.l nd,d0 move.l .limhp,d0
move.l d0,a0 move.l d0,a0
add.w 4(sp),a0 add.w 4(sp),a0
move.l a0,nd move.l a0,.limhp
rts rts
lcerror: jmp cerror Icerror: jmp cerror
_brk: move.w #0x11,d0 _brk: move.w #0x11,d0
move.l 4(sp),a0 move.l 4(sp),a0
trap #0 trap #0
bcs lcerror bcs Icerror
move.l 4(sp),nd move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
nd: .data4 endbss
.sect .text

View file

@ -7,25 +7,21 @@
.sect .data .sect .data
.sect .bss .sect .bss
.sect .text .sect .text
__sbrk: move.l nd,a0 __sbrk: move.l .limhp,a0
add.l 4(sp),a0 add.l 4(sp),a0
move.w #0x11,d0 move.w #0x11,d0
trap #0 trap #0
bcs lcerror bcs lcerror
move.l nd,d0 move.l .limhp,d0
move.l d0,a0 move.l d0,a0
add.l 4(sp),a0 add.l 4(sp),a0
move.l a0,nd move.l a0,.limhp
rts rts
lcerror: jmp cerror lcerror: jmp cerror
__brk: move.w #0x11,d0 __brk: move.w #0x11,d0
move.l 4(sp),a0 move.l 4(sp),a0
trap #0 trap #0
bcs lcerror bcs lcerror
move.l 4(sp),nd move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
nd:
.data4 endbss
.sect .text

View file

@ -7,25 +7,21 @@
.sect .data .sect .data
.sect .bss .sect .bss
.sect .text .sect .text
_sbrk: move.l nd,a0 _sbrk: move.l .limhp,a0
add.l 4(sp),a0 add.l 4(sp),a0
move.w #0x11,d0 move.w #0x11,d0
trap #0 trap #0
bcs lcerror bcs lcerror
move.l nd,d0 move.l .limhp,d0
move.l d0,a0 move.l d0,a0
add.l 4(sp),a0 add.l 4(sp),a0
move.l a0,nd move.l a0,.limhp
rts rts
lcerror: jmp cerror lcerror: jmp cerror
_brk: move.w #0x11,d0 _brk: move.w #0x11,d0
move.l 4(sp),a0 move.l 4(sp),a0
trap #0 trap #0
bcs lcerror bcs lcerror
move.l 4(sp),nd move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
nd:
.data4 endbss
.sect .text