flat assembler
Message board for the users of flat assembler.

Index > DOS > fasm.exe in dosemu does not run

Author
Thread Post new topic Reply to topic
percy_vere_uk



Joined: 11 Apr 2011
Posts: 8
Location: Dorset Uk
percy_vere_uk 01 Jun 2014, 12:35
Hi

I am using fasm17117.

'fasm.exe pong.asm' (which I found on this forum) assembles fine in dosbox but when I try to

use it in dosemu the window closes with no output.

fasmd.exe pong.asm runs in dosemu and disassembles ok

I have tried 'a86' in dosemu and that works fine.

Any idea's

percy
Post 01 Jun 2014, 12:35
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 01 Jun 2014, 12:42
fasmd always uses DPMI, while regular fasm tries to use the 32-bit real mode and switches to DPMI when that fails. Probably dosemu has a problem with emulating this mode and crashes when fasm checks whether it works?
Post 01 Jun 2014, 12:42
View user's profile Send private message Visit poster's website Reply with quote
percy_vere_uk



Joined: 11 Apr 2011
Posts: 8
Location: Dorset Uk
percy_vere_uk 02 Jun 2014, 12:09
Tomasz

Thanks for that I will have to look to see If I can setup DPMI in dosemu.conf
Post 02 Jun 2014, 12:09
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 02 Jun 2014, 13:51
You probably already have DPMI support, since you are able to run fasmd (which can run only with DPMI). But the problem is that fasm first checks whether the processor supports the 32-bit real mode, and only when this fails, it uses DPMI instead. Since the emulator probably crashes on that check, the only way to get around it would be to make fasm skip this check entirely - for example by running it in V86 mode (when processor is not in real mode, fasm goes straight to DPMI variant). You can usually force DOS to run in V86 mode by installing some EMS driver.
Post 02 Jun 2014, 13:51
View user's profile Send private message Visit poster's website Reply with quote
percy_vere_uk



Joined: 11 Apr 2011
Posts: 8
Location: Dorset Uk
percy_vere_uk 06 Jun 2014, 13:10
I am running dosemu in a linux gentoo 64bit system.

Code:
.dosemu/boot.log  gives    {WARN: vm86plus service not available in your kernel}    


So it appears that vm86 needs to be enabled in the kernel. After further research and According to 'http://forums.gentoo.org/viewtopic-t-705463-view-previous.html?sid=b0dc20f9f1b52235c46ef46bce449c24'

it is only available in a 32bit or 16 bit system

So it looks as though I cannot get fasm to run in a 64bit system.

Unless anyone knows differently that is!

percy
Post 06 Jun 2014, 13:10
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 06 Jun 2014, 13:14
percy_vere_uk wrote:
So it looks as though I cannot get fasm to run in a 64bit system.
There are also 32-bit versions for Win32 (in WINE?) and Linux32. I would be surprised if neither of those an be run in 64-bit Linux.
Post 06 Jun 2014, 13:14
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.