🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #297

Re: Another compiler patch

#297
From: Konstantin Koll
Date: Sun, 16 May 1999 00:00
63 lines
3190 bytes
Robert AH Prins wrote:
> 
> In article <373CA7E2.52A4@lmic.state.mn.us>,
>   Pete Olson <pete@lmic.state.mn.us> wrote:
> > Robert AH Prins wrote:
> > >
> > > Hi all,
> > >
> > > As you may remember, I once posted a message that told you that the
> > > builtin assembler in TP6 and BP7 allows the use of AAM & AAD with an
> > > operand, ie AAD 16 will result in "D4h 10h" being generated. If you
> are
> > > willing to sacrifice a little compatibility, and are prepared to
> always
> > > code AAD 10 & AAM 10, you can use the plain AAD and AAM instructions
> to
> > > encode two more useful two-byte (non-operand!) instructions, and one
> > > that seems to come to mind to me is RDTSC, (OF 31). To make the
> patch,
> > > open a backup of your compiler in your favourite hex-editor, search
> for
> > > AAD/AAM and then for "D4 0A" (if AAM) or "D5 0A" (if AAM) closely
> > > following them and replace these two bytes with your favorite
> two-byte
> > > Pentium (P2/P3) opcode bytes.
> > >
> > > I tested it on TP6, and it works!! (Which is very, very useful!)
> > >
> > > ********** YOU MUST NOT CHANGE THE ACTUAL MNEMONIC! **********
> >
> > This seems like an awful lot of work.  Why not just
> >
> > asm
> >    db $0f,$31   {rdtsc}
> > end;
> 
> As yet, it is, but this is only a first observation resulting from my
> work in progress, disassembling TP6' TPC.EXE (to be followed by BPC.EXE)
> 
> Getting it in a state where it can be reassembled, it might allow me to
> actually modify the builtin assembler, and/or add specific 386+
> optimizations to the generated code.
> 
> NB: Don't tell me I should be using FPC/GNU/P32/V-Pascal/TMT, I use
> Pascal only for hobby purposes and have no problem in running DOS on a
> 350 MHz PII.
> 
> Robert
> --
> Robert AH Prins
> prinsra@williscorroon.com
> 
> --== Sent via Deja.com http://www.deja.com/ ==--
> ---Share what you know. Learn what you don't.---

When you don't have any problem in running DOS on a 350 MHz PII (I do
the same, by the way), then you might want to take a look at some
screenshots taken from my DOS GUI (actually, something like Windows
3.x). Check out the website at
http://ls3-www.cs.uni-dortmund.de/~koll/DW
Be careful, the page is about to move to http://www.deskwork.de 

Regards, Konstantin Koll
Technical Details
Message-ID: <373EFB4B.79B169B4@ls3.cs.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7hf1u6$i72$1@nnrp1.deja.com> <373CA7E2.52A4@lmic.state.mn.us> <7hjl6r$t0r$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,e340f54864d66569
X-Google-Attributes: gid111659,public
X-Google-Thread: 1006de,e340f54864d66569
X-Google-Attributes: gid1006de,public
X-Google-Thread: 108ebd,e340f54864d66569
X-Google-Attributes: gid108ebd,public
From: Konstantin Koll <koll@ls3.cs.uni-dortmund.de>
Subject: Re: Another compiler patch
Date: 1999/05/16
Message-ID: <373EFB4B.79B169B4@ls3.cs.uni-dortmund.de>
X-Deja-AN: 478519892
Content-Transfer-Encoding: 7bit
References: <7hf1u6$i72$1@nnrp1.deja.com> <373CA7E2.52A4@lmic.state.mn.us> <7hjl6r$t0r$1@nnrp1.deja.com>
Content-Type: text/plain; charset=us-ascii
Organization: University Dortmund, Germany
Mime-Version: 1.0
Reply-To: kokoll00@marvin.cs.uni-dortmund.de
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal,de.comp.lang.pascal.misc