Bug fixed: a0 is changed by call to _brk, so it should be saved & restored.
authorbal <none@none>
Thu, 17 Jan 1985 10:33:23 +0000 (10:33 +0000)
committerbal <none@none>
Thu, 17 Jan 1985 10:33:23 +0000 (10:33 +0000)
mach/m68k2/libem/shp.s

index 8390632..88421e4 100644 (file)
        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: