flat assembler
Message board for the users of flat assembler.

Index > DOS > Why do the examples don't work?

Author
Thread Post new topic Reply to topic
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
I am a newbie and I work with Fasm 1.49. I tried to compile the examples to see how they are made.
Fasm displayed me this message :
unexpected end of file
What mistake did I commit ?

_________________
Sorry for my very poor English.
Post 28 Sep 2003, 16:11
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
What examples you try to compile?
Post 28 Sep 2003, 19:42
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
I tried to compile Exedemo.asm, comdemo.asm, life.asm (they were in the downloaded zip file).

_________________
Sorry for my very poor English.
Post 01 Oct 2003, 18:02
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Very strange, I use FASMW and every example in DOS package is compiled normal. Check the source code. Try to write some simple prog:
Code:
  nop
  nop
  ret
    

Try to compile...
Post 01 Oct 2003, 18:11
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
Tank you, your example works on the first computer (pentium 2)
but it don't on my computer (intel 386). I can't understand why.
Same thing with other examples.
I usually use the 386, which uses an other program (cwsdpmi) to enable the protected mode.

_________________
Sorry for my very poor English.
Post 03 Oct 2003, 14:22
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Well, here is a quote from Fasm.txt file:
Quote:
All versions require the Intel Architecture 32-bit processor (at least 80386),
although they can produce programs for Intel Architecture 16-bit processors,
too. DOS version requires an OS compatible with MS DOS 2.0, Windows version
requires a Win32 console compatible with 3.1 version.


If you meet all this conditions, you must speak with Privalov - maybe this is some internal FASM problem on old 386 processors...

regards.
Post 03 Oct 2003, 14:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
Are you running it with cwsdpmi loaded? If yes, try running it in the clean real mode - if then it works, it is probably fault of new DPMI support in DOS interface.
Post 03 Oct 2003, 14:46
View user's profile Send private message Visit poster's website Reply with quote
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
I don't know whether I have the Intel Architecture 32-bit processor or not and I don't know how to disable the protected mode (I don't know where EMM386 is and how it is loaded).
My DOS is 2.0 compatible and I use cwsdpmi.
Windows 3.1 is installed.
Thank you for your replies.

_________________
Sorry for my very poor English.
Post 04 Oct 2003, 11:05
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
How do you load cwsdpmi? What command are you using to execute fasm?
If you don't load cwsdpmi, how does it behave?
Post 04 Oct 2003, 14:38
View user's profile Send private message Visit poster's website Reply with quote
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
I type "fasm c:\asm\progs\Essai.asm c:\asm\finis\Essai.exe" to compile (the folders exist).
If I don't use cwsdpmi, it displays an error message about the protected mode without DPMI services and exits.
I use a .bat file to load cwsdpmi. If I remember it is as if I typed
cwsdpmi.exe
within command.com.

_________________
Sorry for my very poor English.
Post 05 Oct 2003, 17:36
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
I've found and fixed the bug that the most probably was causing your problems - please try the updated 1.49 DOS release (with today's date).
Post 13 Oct 2003, 08:25
View user's profile Send private message Visit poster's website Reply with quote
Bubonik



Joined: 28 Sep 2003
Posts: 6
Location: France
Bubonik
Thank you, Privalov! It works perfectly. Very Happy

_________________
Sorry for my very poor English.
Post 19 Oct 2003, 20:03
View user's profile Send private message 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.