Re: Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines



On Feb 26, 7:05 am, NoS...@xxxxxxxxxxx (Bob Masta) wrote:
On Mon, 25 Feb 2008 14:19:21 GMT, Frank Kotler  <spamt...@xxxxxxxxxx>
wrote:





Bob Masta wrote:
On Sun, 24 Feb 2008 22:28:45 GMT, Frank Kotler  <spamt...@xxxxxxxxxx>
wrote:

Pop Tart wrote:

Hello,

I've come to a point in my study of MASM where I can't work the examples for
disk I/O unless I have Windows 98 or less.

<snip>

I'm not sure why you'd want Win98. I know it comes with "real dos", but
in a "dos box", the bios interrupts are "fake" (I mean "emulated"). I
think you'd want "real bios interrupts",

I assume the OP said "Win98 or less" because you can get to
real-mode DOS.  It's a little more cumbersome than just using the
"DOS box" you get when you click on the MS-DOS option.  You
can get to real-mode via "Start - Shutdown - Restart the computer
in MS-DOS mode", or you can create a desktop icon that automatically
goes to real-mode, runs your app, and then restarts Windows.  You
can't do either of those in later Windows versions (except WinMe,
with some trickery).

How is this done: 'you can create a desktop icon that automatically
goes to real-mode, runs your app, and then restarts Windows' for real
mode enviornment on WIN98? I would like to know how to do this
properly.

For checking, I used debug:
-f 100 L 2ff 90
-a
mov ax,1687
int 2f
-p =100 3

-in debug to test for support of DPMI v0.9
(RET AH.0 if successful, AH.8Ah if unsuccessful, AH.1687h if no
support.)
For the [Start][Programs] MS-DOS Prompt, it _is_ supported indicating
VM mode and creating a shortcut for sending to the desktop is the
same.

For via "Start - Shutdown - Restart the computer in MS-DOS mode", it
is _not_ supported, rets: AH,1687h.

However, in debug, if
pushf
pop bx
RETS:
BX.7202h indicating IOPL == 3. _for__both_
Real 'Real Mode' returns IOPL == 0, if done from floppy boot sector
code.

Steve

Yeah... I'm not so sure about "restart in dos mode". Type "exit", and
IIRC you wind up back in Windows. Not what I call "real dos", but it
probably is "real" enough for bios interrupts (not "real" enough for
Flat Real Mode, IIRC).

The fact that "exit" gets you back to Windows means nothing...
it does a complete reboot to get back there.  My old Daqarta
for DOS is very picky about real mode, and it runs just fine.
It tests the MSW for the PE flag, and won't even start if set.
I haven't tried Flat Real Mode, but I'd be surprised if it didn't
work.  I have never found anything, nor read anything, to
indicate that this is anything other than normal Real Mode.

Best regards,

Bob Masta

              DAQARTA  v3.50
   Data AcQuisition And Real-Time Analysis
             www.daqarta.com
Scope, Spectrum, Spectrogram, FREE Signal Generator
        Science with your sound card!- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: assembly language and reverse engineering
    ... in Windows assembly programming what you can't learn when doing ... Windows API but about assembly programming). ... And you have far less to learn to get your first working DOS program than ... but, real mode is real mode, and pmode is pmode. ...
    (alt.lang.asm)
  • Re: I have silly question...
    ... Perhaps current 32-bit Windows ... which was provided by the underlying DOS extender. ... Real mode was dropped in Win3.1. ...
    (comp.programming)
  • Re: large HD partition: who is right?
    ... Regarding the "utility that attempts to access the disk using the BIOS's ... Do 3rd party tools like those disk defrag software for windows come under ... The BIOS provides only a real mode driver. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: MS DOS
    ... or has to be "real-mode". ... Just type 'DOS' into Windows XP Help, ... is a functional DOS, and is still a matter of semantics. ... >The command prompt in XP is not real-mode DOS. ...
    (microsoft.public.windowsxp.general)
  • Re: Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines
    ... It's a little more cumbersome than just using the "DOS box" you get when you click on the MS-DOS option. ... can get to real-mode via "Start - Shutdown - Restart the computer in MS-DOS mode", or you can create a desktop icon that automatically ... goes to real-mode, runs your app, and then restarts Windows. ... Before you can edit msdos.sys, ...
    (comp.lang.asm.x86)