From: bal Date: Thu, 17 Jan 1985 10:33:23 +0000 (+0000) Subject: Bug fixed: a0 is changed by call to _brk, so it should be saved & restored. X-Git-Tag: release-5-5~5776 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8f7a447719daf6c8ca53863db20b948c92bdc3ff;p=ack.git Bug fixed: a0 is changed by call to _brk, so it should be saved & restored. --- diff --git a/mach/m68k2/libem/shp.s b/mach/m68k2/libem/shp.s index 8390632a3..88421e459 100644 --- a/mach/m68k2/libem/shp.s +++ b/mach/m68k2/libem/shp.s @@ -10,9 +10,11 @@ add.l #0x400,d0 and.l #~0x3ff,d0 move.l d0,.limhp + move.l a0,-(sp) move.l d0,-(sp) jsr _brk tst.l (sp)+ + move.l (sp)+,a0 tst.w d0 bne 2f 1: