Groups | Search | Server Info | Login | Register


Groups > comp.lang.pascal.borland > #222

Bug in Turbo Pascal V3.01a

From Robert Prins <robert@prino.org>
Newsgroups comp.lang.pascal.borland
Subject Bug in Turbo Pascal V3.01a
Date 2021-06-15 18:22 +0000
Organization A noiseless patient Spider
Message-ID <saak6l$em3$1@dont-email.me> (permalink)

Show all headers | View raw


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

Back to comp.lang.pascal.borland | Previous | Next | Find similar


Thread

Bug in Turbo Pascal V3.01a Robert Prins <robert@prino.org> - 2021-06-15 18:22 +0000

csiph-web