Use .limhp

This commit is contained in:
ceriel 1990-01-22 14:25:10 +00:00
parent 9f0c356194
commit f815a342e7
4 changed files with 20 additions and 32 deletions

View file

@ -7,17 +7,17 @@ __sbrk:
move.l #~3,d1 move.l #~3,d1
and.l d1,d0 and.l d1,d0
move.l d0,a0 move.l d0,a0
move.l curbrk,d0 move.l .limhp,d0
add.l #3,d0 add.l #3,d0
and.l d1,d0 and.l d1,d0
move.l d0,curbrk move.l d0,.limhp
add.l d0,a0 add.l d0,a0
move.l a0,4(sp) move.l a0,4(sp)
pea 17 ! not SYS_sbrk pea 17 ! not SYS_sbrk
trap #0 trap #0
bcs 1f bcs 1f
move.l curbrk,d0 move.l .limhp,d0
move.l 4(sp),curbrk move.l 4(sp),.limhp
rts rts
1: 1:
jmp cerror jmp cerror
@ -31,9 +31,6 @@ __brk:
pea 17 pea 17
trap #0 trap #0
bcs 1b bcs 1b
move.l 4(sp),curbrk move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
curbrk: .data4 endbss

View file

@ -7,17 +7,17 @@ _sbrk:
move.l #~3,d1 move.l #~3,d1
and.l d1,d0 and.l d1,d0
move.l d0,a0 move.l d0,a0
move.l curbrk,d0 move.l .limhp,d0
add.l #3,d0 add.l #3,d0
and.l d1,d0 and.l d1,d0
move.l d0,curbrk move.l d0,.limhp
add.l d0,a0 add.l d0,a0
move.l a0,4(sp) move.l a0,4(sp)
pea 17 ! not SYS_sbrk pea 17 ! not SYS_sbrk
trap #0 trap #0
bcs 1f bcs 1f
move.l curbrk,d0 move.l .limhp,d0
move.l 4(sp),curbrk move.l 4(sp),.limhp
rts rts
1: 1:
jmp cerror jmp cerror
@ -31,9 +31,6 @@ _brk:
pea 17 pea 17
trap #0 trap #0
bcs 1b bcs 1b
move.l 4(sp),curbrk move.l 4(sp),.limhp
clr.l d0 clr.l d0
rts rts
.sect .data
curbrk: .data4 endbss

View file

@ -7,17 +7,17 @@ __sbrk:
move.l #~3,d1 move.l #~3,d1
and.l d1,d0 and.l d1,d0
move.l d0,a0 move.l d0,a0
move.l (curbrk),d0 move.l (.limhp),d0
add.l #3,d0 add.l #3,d0
and.l d1,d0 and.l d1,d0
move.l d0,(curbrk) move.l d0,(.limhp)
add.l d0,a0 add.l d0,a0
move.l a0,(4,sp) move.l a0,(4,sp)
pea (17) ! not SYS_sbrk pea (17) ! not SYS_sbrk
trap #0 trap #0
bcs 1f bcs 1f
move.l (curbrk),d0 move.l (.limhp),d0
move.l (4,sp),(curbrk) move.l (4,sp),(.limhp)
rts rts
1: 1:
jmp (cerror) jmp (cerror)
@ -31,11 +31,8 @@ __brk:
pea (17) pea (17)
trap #0 trap #0
bcs 1f bcs 1f
move.l (4,sp),(curbrk) move.l (4,sp),(.limhp)
clr.l d0 clr.l d0
rts rts
1: 1:
jmp (cerror) jmp (cerror)
.sect .data
curbrk: .data4 endbss

View file

@ -7,17 +7,17 @@ _sbrk:
move.l #~3,d1 move.l #~3,d1
and.l d1,d0 and.l d1,d0
move.l d0,a0 move.l d0,a0
move.l (curbrk),d0 move.l (.limhp),d0
add.l #3,d0 add.l #3,d0
and.l d1,d0 and.l d1,d0
move.l d0,(curbrk) move.l d0,(.limhp)
add.l d0,a0 add.l d0,a0
move.l a0,(4,sp) move.l a0,(4,sp)
pea (17) ! not SYS_sbrk pea (17) ! not SYS_sbrk
trap #0 trap #0
bcs 1f bcs 1f
move.l (curbrk),d0 move.l (.limhp),d0
move.l (4,sp),(curbrk) move.l (4,sp),(.limhp)
rts rts
1: 1:
jmp (cerror) jmp (cerror)
@ -31,11 +31,8 @@ _brk:
pea (17) pea (17)
trap #0 trap #0
bcs 1f bcs 1f
move.l (4,sp),(curbrk) move.l (4,sp),(.limhp)
clr.l d0 clr.l d0
rts rts
1: 1:
jmp (cerror) jmp (cerror)
.sect .data
curbrk: .data4 endbss