don't use reghp

This commit is contained in:
ceriel 1987-03-30 12:35:46 +00:00
parent 3233aaf5a5
commit e07da4cad3
2 changed files with 16 additions and 8 deletions

View file

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

View file

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