Use .limhp

This commit is contained in:
ceriel 1990-01-22 15:03:13 +00:00
parent ea891cfb3c
commit 7e34a42088
2 changed files with 9 additions and 9 deletions

View file

@ -7,19 +7,19 @@
.sect .data .sect .data
.sect .bss .sect .bss
.sect .text .sect .text
__sbrk: move.l (.reghp),d0 __sbrk: move.l (.limhp),d0
add.l d0,(4,sp) add.l d0,(4,sp)
move.l #0x11,d0 move.l #0x11,d0
trap #0 trap #0
bcs lcerror bcs Icerror
move.l (.reghp),d0 move.l (.limhp),d0
move.l d0,a0 move.l d0,a0
move.l (4,sp),(.reghp) move.l (4,sp),(.limhp)
rts rts
lcerror: jmp (cerror) lcerror: jmp (cerror)
__brk: move.l #0x11,d0 __brk: move.l #0x11,d0
trap #0 trap #0
bcs lcerror bcs lcerror
move.l (4,sp),(.reghp) move.l (4,sp),(.limhp)
clr.l d0 clr.l d0
rts rts

View file

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