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



Bob Masta wrote:
On Sun, 24 Feb 2008 22:28:45 GMT, Frank Kotler <spamtrap@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).

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).

You can hit some function key... F5? F8? during bootup, or what i did - edit msdos.sys. It's just a text file - didn't used to be, in the good old days. If you change "GUI=1" to "GUI=0" - "real dos". If you want the GUI, type "win". Before you can edit msdos.sys, you've gotta remove some "attributes" from it - system, hidden and readonly. "attrib -s -h -r msdos.sys" - put 'em back when you're done when you're done, if you feel like it. This used to be "everybody knows"... I suppose it's in danger of becoming "forgotten lore"...

If we're stuck with "greater than" Win98, where the dos box "doesn't smell right", and if we've got a floppy drive, we might be interested in this:

http://mikegonta.com/dosboots

(opendos, or similar, ought to be fine, too)

Maybe could make a bootable CD out of it, too(?).

Best,
Frank

.



Relevant Pages

  • ~~~~~~~~~~~~~~ FILE NAME ~~~~~~~~~~~~~~
    ... adapter description file file name extension ... apple script to change file names ... batching file name changes in windows ... change short file names in dos ...
    (sci.misc)
  • Re: Linux syscalls
    ... > A device driver or a rewrite of DOS could permit this, ... really "DOS inside Windows" or "Windows inside DOS"? ... > DOS interrupts are revectored... ... if you re-write DOS to use the _Windows device drivers_ ...
    (alt.lang.asm)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: MS and security: good effort but no cigar
    ... And last but not least, no fat, no dos, no multiboot. ... build upon the progress it's already made in security. ... a Windows system, it is still surprisingly easy to completely own that ... Then there's the issue of poorly secured server applications. ...
    (microsoft.public.windowsxp.general)
  • 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)