VOGONS

Common searches


First post, by Malik

User metadata
Rank l33t
Rank
l33t

Greetings.

Does anyone know of a simple command line utility to run in DOS to show if the system is running in Real mode or Protected mode?

Just a curiosity. Thanks.

5476332566_7480a12517_t.jpgSB Dos Drivers

Reply 1 of 6, by Falcosoft

User metadata
Rank Oldbie
Rank
Oldbie
Malik wrote on 2021-10-12, 09:45:

Greetings.

Does anyone know of a simple command line utility to run in DOS to show if the system is running in Real mode or Protected mode?

Just a curiosity. Thanks.

I have compiled a simple utility that just shows that:

Filename
PMODE.zip
File size
589 Bytes
Downloads
13 downloads
File license
Public domain

Website, Facebook, Youtube
Falcosoft Midi Player + Munt VSTi + BassMidi VSTi topic

Reply 3 of 6, by retardware

User metadata
Rank Oldbie
Rank
Oldbie

@Falcosoft
Very nice small utility 😀

Question:
Is it possible to also show if unreal mode is active?
For example, there are games that do not work in v86 mode, only in real mode.
For these, I like the Micronics MICEMM memory manager, as it is an EMM386 equivalent that can work in unreal mode (eg with the REAL option), so EMS and UMBs are available without v86 mode.

Reply 4 of 6, by Falcosoft

User metadata
Rank Oldbie
Rank
Oldbie
retardware wrote on 2021-10-12, 16:13:
@Falcosoft Very nice small utility :) […]
Show full quote

@Falcosoft
Very nice small utility 😀

Question:
Is it possible to also show if unreal mode is active?
For example, there are games that do not work in v86 mode, only in real mode.
For these, I like the Micronics MICEMM memory manager, as it is an EMM386 equivalent that can work in unreal mode (eg with the REAL option), so EMS and UMBs are available without v86 mode.

I do not know how to check unreal mode easily (since unreal mode isn't an actual CPU mode) and I also do not know if it's relevant in this context: i.e. unreal mode has the same characteristics as real mode (you can run privileged instructions etc. the same way as in real mode).
BTW here is a modified version that sets the exit code according to real/protected mode result (0/1) so you can use it more easily from batch files by testing 'errorlevel'.

Filename
PMODE.zip
File size
749 Bytes
Downloads
10 downloads
File license
Public domain

@Edit:
It does not check if CPU is supported or not but works correctly on any 286+ CPU (386 is not required)

Last edited by Falcosoft on 2021-10-12, 17:29. Edited 1 time in total.

Website, Facebook, Youtube
Falcosoft Midi Player + Munt VSTi + BassMidi VSTi topic

Reply 5 of 6, by Gmlb256

User metadata
Rank Oldbie
Rank
Oldbie
retardware wrote on 2021-10-12, 16:13:

I like the Micronics MICEMM memory manager, as it is an EMM386 equivalent that can work in unreal mode (eg with the REAL option), so EMS and UMBs are available without v86 mode.

How EMS memory performs with that expanded memory manager? Seems interesting considering that it uses the uncommon unreal mode.

Falcosoft wrote on 2021-10-12, 17:06:
I do not know how to check unreal mode easily and I also do not know if it's relevant in this context: i.e. unreal mode has the […]
Show full quote

I do not know how to check unreal mode easily and I also do not know if it's relevant in this context: i.e. unreal mode has the same characteristics as real mode (you can run privileged instruction etc. the same way as in real mode).
BTW here is a modified version that sets the exit code according to real/protected mode result (0/1) so you can use it more easily from batch files by testing 'errorlevel'.
PMODE.zip

@Edit:
It does not check if CPU is supported or not but works correctly on any 286+ CPU (386 is not required)

The ERRORLEVEL usage for batch files and the fact that it can work with 286 CPUs makes it useful. 👍