flat assembler
Message board for the users of flat assembler.

Index > DOS > Fasm not able to enter 32-bit real mode in DosBox

Author
Thread Post new topic Reply to topic
Travis86



Joined: 14 Jul 2010
Posts: 2
Travis86
I have a PPC Mac, so I'm trying to run Fasm (v1.68) in DosBox (v0.74). Unfortunately, when I run it, it says "error: processor is not able to enter 32-bit real mode." Fasmd says "32-bit DPMI services are not available". I've read the DOS FAQ, but nothing quite addresses this issue directly.

How can I get Fasm to work?
Post 14 Jul 2010, 03:16
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16840
Location: In your JS exploiting you and your system
revolution
Use a different emulator. It seems that DosBox does not support 32-bit FRM mode.
Post 14 Jul 2010, 05:03
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7404
Location: Kraków, Poland
Tomasz Grysztar
You can run FASMD in DosBox if you load some DPMI server first.
Post 14 Jul 2010, 08:53
View user's profile Send private message Visit poster's website Reply with quote
rCX



Joined: 29 Jul 2007
Posts: 166
Location: Maryland, USA
rCX
As Tomasz was saying...
1. Download cwsdpmi. I found it here using Google
2. In DOSBox use it with the dos version of fasm...
Code:
cwsdpmi.exe -p
fasm file.asm file.exe
    
Post 14 Jul 2010, 17:46
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Post 19 Jul 2010, 12:05
View user's profile Send private message Visit poster's website Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
Dosemu is a true emulator, use it. Doxbox is more like a VM than an emulator.
Post 19 Jul 2010, 22:34
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Tyler wrote:
Dosemu is a true emulator, use it. Doxbox is more like a VM than an emulator.


At risk of being pedantic, ...

DOSEMU is currently for Linux only (though x86-64 also), typically uses V86 (else slow but full 16-bit cpu emulation under AMD64), so it's native speed. It's pretty good and comes with FreeDOS, but you can use others if desired. It supports LFNs and DPMI natively, too, and can share files with host OS.

DOSBox is primarily for games, no DPMI built-in by default, max. 64 MB emulated RAM (default only 16 MB), not native speed at all (though sometimes core=dynamic helps). It has its own built-in fake DOS, and it can run on host OSes besides Linux. It also shares files with host OS, but it doesn't directly boot a real OS, nor does it support LFNs. It has better support for some things (e.g. sound), and it isn't susceptible to certain buggy kernels like DOSEMU is (Ubuntu bug -> beep beep beep at every DOSEMU keypress).

Example: Running DJGPP will work better in DOSEMU (and much faster), but BioMenace only seems to work in DOSBox (no idea why, choking on some auto-detection, apparently). However, I remember I tried Timeless, and it worked okay under DOSEMU. Oh, and Quake runs perfect under DOSEMU (even x86-64).

IIRC, DOSBox even comes installed by default on a few Linux distros (antiX, CDlinux) but DOSEMU on none (which is dumb, IMHO), only available in "multiverse".
Post 20 Jul 2010, 05:03
View user's profile Send private message Visit poster's website Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
Wikipedia wrote:
DOSBox is a full CPU emulator, capable of running DOS programs that require the CPU to be in either real mode or protected mode. Other similar programs, such as dosemu or VDMs for Windows and OS/2, provide compatibility layers and rely on virtualization capabilities of the 386 family processors.
Oops, I had them backwards. Like rugxulo said, it's dosemu that is an emulator.
Post 20 Jul 2010, 05:21
View user's profile Send private message Reply with quote
Travis86



Joined: 14 Jul 2010
Posts: 2
Travis86
Thanks, guys. It works now.

Is this FAQ material or should I have known this? Confused
Post 21 Jul 2010, 23:36
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
FAQ? No, but occasionally people ask. Should you have known this? No, it's probably the emulators' faults for not fully implementing x86 (though it's difficult so I don't really blame them).
Post 24 Jul 2010, 18:15
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.