CAF and patches... (the other patch)
 
As a reminder... there was a previous message from Frank Szymanski stating 
that Pure-C needed an additional patch:
> recently I heard from another bug in the Pure-C-Library. Perhaps this can
> solve some problems with CAF 2.06?
> 
> ----------------------------- schnipp ------------------------------------
> ::::
> Von:  Joergen Von Bargen _at_ HH (Mo, 27.12.93 18:13)
> ::::
> Ursache: Folgendes codefragment in realloc
> 
> (reason: following codefragment in realloc)
> 
>     MOVE.L  D0,D1
>     MOVE.L  D0,-(A7)
>     PEA     -8(A3)
>     MOVE.W  #0,-(A7)
>     MOVE.W  #$4A,-(A7)
>     TRAP    #1          ; Mshrink
>     LEA     12(A7),A7
>     TST.L   D0
>     BNE.B   irgendwohin
>     MOVE.L  D1,-4(A3)   ; das ist der hammer (Wow!)
> 
> Da wird D1 nicht gerettet bei einem GEMDOS-Trap :-/
> 
> (D1 won't be saved in a GEMDOS-Trap)
> 
> Dieses Codefragment habe ich in verschiedenen aktuellen Programmen gefunden:
> 
> (This codefragment can be found in several current programs:)
> 
> Connect, kndinsky.app, triple_d.app, vt52.prg, ease.prg, eh_mgif.ttp, ppc.ttp.
> 
> Als Abhilfe kann folgender Patch dienen:
> 
> (This cures the problem)
> 
> vvvvvvvvvvvv alt (old)vvvvvvvvvv
> 2200            MOVE.L    D0,D1
> 2F00            MOVE.L    D0,-(A7)
> 486BFFF8        PEA.L     -8(A3)
> 3F3C0000        MOVE.W    #$0000,-(A7)
> 3F3C004A        MOVE.W    #$004A,-(A7)
> 4E41            TRAP      #1
> 4FEF000C        LEA.L     12(A7),A7
> 4A80            TST.L     D0
> ^^^^^^^^^^^^ alt (old)^^^^^^^^^^
> vvvvvvvvvvvv neu (new)vvvvvvvvvv
> 2F00            MOVE.L  D0,-(A7)
> 2F00            MOVE.L  D0,-(A7)
> 486BFFF8        PEA     -8(A3)
> 2F3C004A0000    MOVE.L  #$004A0000,-(A7)
> 4E41            TRAP    #1
> 4FEF000C        LEA     12(A7),A7
> 221F            MOVE.L  (A7)+,D1
> 4A80            TST.L   D0
> ^^^^^^^^^^^^ neu (new)^^^^^^^^^^
> 
> or shorter:
> 
> 22002F00486BFFF83F3C00003F3C004A4E414FEF000C4A80    : old realloc
> 2F002F00486BFFF82F3C004A00004E414FEF000C221F4A80    : new realloc
> 
> Dieser Patch kann auch auf die PCSTDLIB.LIB angewendet werden.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> (This patch also works on PCSTDLIB.LIB :-))
> 
> ---------------------------------schnapp-------------------------
I have carefully looked through CAF_206.PRG and neither the first nor 
second string appear. I did find them in Kandinsky... so I would still be 
interested to know what this fixes - and if it is a useful fix, whether 
anyone can easily knock up a patch program like Doug's AB040FIX.PRG.
I guess it would also be interesting to know if it was applicable to 030 
machines too (presumably it is?).
Oliver Skelton
Received on fr. mars 13 1998 - 02:18:00 CET
This archive was generated by hypermail 2.3.0
: ti. nov. 03 2015 - 20:07:54 CET