• Bug in Turbo Pascal V3.01a

    From Robert Prins@21:1/5 to All on Tue Jun 15 18:22:19 2021
    move(trip, _minmax[1].fasts[1].fast_trip, sizeof(fastid));

    where fastid has a size of 4.

    The compiler emits a "mov ax, 4" twice.

    Absolutely no clue why. Use 4 (and loose portability) and it's OK.

    Having fun decompiling code to mis-matched source, and given that all the Borland Pascal compilers are simple one-pass programs, that turns out to relatively easy! ;)

    Robert

    PS: And no I haven't got anything better to do.
    --
    Robert AH Prins
    robert(a)prino(d)org
    The hitchhiking grandfather - https://prino.neocities.org/indez.html
    Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)