Board index » delphi » Detecting Protected/Real mode
Minoru Tod
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Minoru Tod
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Detecting Protected/Real mode
Heya. I'm using Borland Pascal 7.0, and I am looking for some reliable method
for a program to detect, whether it is running/compiled for Protected mode or Real mode. If there is a syntax which uses compiler directive, that is a definet plus, but as long as it is reliable (i.e. it doesn't change depending on system/prototype hardware) it would be great. Thanks :) Minoru Toda |
Robert Javorni
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Detecting Protected/Real modeQuote>for a program to detect, whether it is running/compiled for Protected mode WriteLn('Running in PM'); {$ELSE} WriteLn('Running in RM'); {$ENDIF} Regarding your previous question (upgrading program later on), you could try Robert |
Pedt Scrag
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Detecting Protected/Real modeMinoru Toda used chalk and slate for Quote>Heya. I'm using Borland Pascal 7.0, and I am looking for some reliable method {$IFDEF DPMI} Never curse the Crocodile's mother before crossing the river |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Detecting Protected/Real modeIn article <ncMl8MA32OR3Y...@pedt.demon.co.uk>, Pedt Scragg <signp...@pedt.demon.co.uk> wrote: Quote>Minoru Toda used chalk and slate for {$IFDEF DPMI} In that way the compiler can optimize them Osmo |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Detecting Protected/Real modeJRS: In article <ncMl8MA32OR3Y...@pedt.demon.co.uk> of Fri, 21 May 1999 06:23:03 in news:comp.lang.pascal.borland, Pedt Scragg Quote<newsmas...@pedt.demon.co.uk> wrote: is IMHO better (unless you are paid by the line). Precede it, for safety, with {$IFDEF WINDOWS} **fail** {$ENDIF} Perhaps you should also consider what else the program might be compiled I now often add {$I version.pas} to programs, to include -- |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Detecting Protected/Real modeJRS: In article <7i3spn$...@kruuna.Helsinki.FI> of Fri, 21 May 1999 18:06:31 in news:comp.lang.pascal.borland, Osmo Ronkanen Quote<ronka...@cc.helsinki.fi> wrote: IIRC, that also means that one can write, rather than -- |
1. Protected mode VS Real mode ???
2. Real Mode from Protected Mode: Accessing an RMode TSR from PMode
3. Protected mode vs. Real mode
4. Vesa unit for all 256 and 65K color modes (protected,real mode)
5. Real mode Interrupts and pointers in Protected Mode
6. Real mode > protected mode, BGI error :-(