use .limhp

This commit is contained in:
ceriel 1990-04-23 13:39:26 +00:00
parent f95fae24fc
commit ed81d83f4c
2 changed files with 8 additions and 10 deletions

View file

@ -7,7 +7,7 @@
__sbrk: __sbrk:
mov 2(sp),0f+2 mov 2(sp),0f+2
beq 1f beq 1f
add Ixxx,0f+2 add .limhp,0f+2
bcs 2f bcs 2f
sys indir; .data2 0f sys indir; .data2 0f
bcc 1f bcc 1f
@ -16,8 +16,8 @@ __sbrk:
mov $-1,r0 mov $-1,r0
rts pc rts pc
1: 1:
mov Ixxx,r0 mov .limhp,r0
add 2(sp),Ixxx add 2(sp),.limhp
rts pc rts pc
__brk: __brk:
@ -28,7 +28,7 @@ __brk:
mov $-1,r0 mov $-1,r0
rts pc rts pc
1: 1:
mov 2(sp),Ixxx mov 2(sp),.limhp
clr r0 clr r0
rts pc rts pc
@ -36,4 +36,3 @@ __brk:
0: 0:
sys break sys break
.data2 0 .data2 0
Ixxx: .data2 _end

View file

@ -7,7 +7,7 @@
_sbrk: _sbrk:
mov 2(sp),0f+2 mov 2(sp),0f+2
beq 1f beq 1f
add xxx,0f+2 add .limhp,0f+2
bcs 2f bcs 2f
sys indir; .data2 0f sys indir; .data2 0f
bcc 1f bcc 1f
@ -16,8 +16,8 @@ _sbrk:
mov $-1,r0 mov $-1,r0
rts pc rts pc
1: 1:
mov xxx,r0 mov .limhp,r0
add 2(sp),xxx add 2(sp),.limhp
rts pc rts pc
_brk: _brk:
@ -28,7 +28,7 @@ _brk:
mov $-1,r0 mov $-1,r0
rts pc rts pc
1: 1:
mov 2(sp),xxx mov 2(sp),.limhp
clr r0 clr r0
rts pc rts pc
@ -36,4 +36,3 @@ _brk:
0: 0:
sys break sys break
.data2 0 .data2 0
xxx: .data2 _end