flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Not a real error...

Author
Thread Post new topic Reply to topic
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
I don't know if I should post this or not. Maybe it doesn't belong here.
Sometimes when I do FASM for DOS in Windows "virtual DOS" if my program has errors FASM crashes or displays random stuff on the screen. This is obviously a Windows problem, not a FASM problem. Therefore, I am not reporting a error.
Sometimes it says "Page Fault" or something like that, and sometimes it displays a hex dump on the screen. This usually happens when I forgot to put a closing ' around a string or something like that.
Why does it do this? This is a weird error with Windows, since it should do what it does in DOS: display an error message and quit.

I should probably use the Windows FASM to avoid this error, and I will do this in the future.

_________________
FASM Rules!
OS Dev is fun!
Pepsi tastes nasty!
Some ants toot!
It's over!
Post 09 Jun 2005, 18:45
View user's profile Send private message AIM Address Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7795
Location: Kraków, Poland
Tomasz Grysztar
It actually might be some bug in the DPMI-based fasm's interface module. I will try to do some tests to see when it happens.
Post 09 Jun 2005, 20:36
View user's profile Send private message Visit poster's website Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
Well it works perfectly as it's supposed to in plain DOS with no Windows.
Post 14 Jun 2005, 23:34
View user's profile Send private message AIM Address Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7795
Location: Kraków, Poland
Tomasz Grysztar
Might be some stack misalignment - Windows doesn't like it.
Post 14 Jun 2005, 23:40
View user's profile Send private message Visit poster's website Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
Odd... I don't know much about DPMI, but generally if a DOS program works in DOS but not in the Windows emulator, I would think it's Windows' fault, not the programs fault. BTW, If it helps any, I'm using Windows 95 on a 486 with 16MB memory (I know, it's primitive- I'm planning on getting a MUCH better computer soon).
Post 17 Jun 2005, 03:58
View user's profile Send private message AIM Address Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
All this sounds to me like a push-ed single word on stack which is not poped before a jump to some fasm fatal/assembler error handler, where at some point the stack (esp) is simply restored from original esp on entry, and windows doesn't seem to like things like that. Even if the actual ESP is correct. I had similar problems when coding with delphi (integrated assembler) about 3 years ago, but can't find the file right now Sad
Post 20 Jun 2005, 12:30
View user's profile Send private message Reply with quote
Raedwulf



Joined: 13 Jul 2005
Posts: 375
Location: United Kingdom
Raedwulf
Exclamation wow 486......yikes Neutral Stop using that about 9 years ago Razz

_________________
Raedwulf
Post 03 Aug 2005, 20:28
View user's profile Send private message MSN Messenger Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
lol I have no money but I plan to buy a new one in a couple months
Post 08 Aug 2005, 22:11
View user's profile Send private message AIM Address 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.