Now using .reghp.

This commit is contained in:
keie 1985-03-04 16:11:26 +00:00
parent 0fd729951a
commit 8a40c25069

View file

@ -5,7 +5,7 @@
_sbrk: tst.b -8(sp) _sbrk: tst.b -8(sp)
move.l 4(sp),d0 move.l 4(sp),d0
beq 1f beq 1f
add.l nd,d0 add.l .reghp,d0
move.l d0,-(sp) move.l d0,-(sp)
clr.l -(sp) clr.l -(sp)
trap #0 trap #0
@ -14,18 +14,15 @@ _sbrk: tst.b -8(sp)
bcc 1f bcc 1f
jmp cerror jmp cerror
1: 1:
move.l nd,d0 move.l .reghp,d0
move.l 4(sp),d1 move.l 4(sp),d1
add.l d1,nd add.l d1,.reghp
rts rts
_brk: trap #0 _brk: trap #0
.short 0x11 .short 0x11
bcc 1f bcc 1f
jmp cerror jmp cerror
1: 1:
move.l 4(sp),nd move.l 4(sp),.reghp
clr.l d0 clr.l d0
rts rts
.data
nd: .long endbss
.text