flat assembler
Message board for the users of flat assembler.

Index > Windows > .sys ? with Fasm

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 24 Dec 2008, 00:27
Hi , Wink

What must I take as options of compilation
to have a ".sys" file (driver).
Sorry , my English n' is not very good. Embarassed

thanks Wink
Post 24 Dec 2008, 00:27
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20290
Location: In your JS exploiting you and your system
revolution 24 Dec 2008, 00:40
Code:
format pe native    
Post 24 Dec 2008, 00:40
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 24 Dec 2008, 01:04
Have you noticed that without fixups directory fasm says "code cannot be generated"? The "weird" part is that with the other possible formats there are no complaints if "format X" is the only line in the source.
Post 24 Dec 2008, 01:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20290
Location: In your JS exploiting you and your system
revolution 24 Dec 2008, 01:09
LocoDelAssembly wrote:
Have you noticed that without fixups directory fasm says "code cannot be generated"? The "weird" part is that with the other possible formats there are no complaints if "format X" is the only line in the source.
I've never tried to assemble a file with only a "format ..." line. I didn't really see the point. But nevertheless, a bug it would seem.
Post 24 Dec 2008, 01:09
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 24 Dec 2008, 01:39
Quote:

But nevertheless, a bug it would seem.

I don't know but this behavior is present on FASM 1.64 also so if it is a bug then it is an ancient one (but not as ancient as the [reg*0] bug Razz)

Quote:
I've never tried to assemble a file with only a "format ..." line. I didn't really see the point


It can be instructive to see the minimal (not necessarily working) structure of the target binary for educational purposes, but in average quite useless, yes.
Post 24 Dec 2008, 01:39
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 24 Dec 2008, 09:04
hi,

Code:
Format pe native ?    


I tried but it gives no results, no ".sys" file.
Crying or Very sad
Post 24 Dec 2008, 09:04
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20290
Location: In your JS exploiting you and your system
revolution 24 Dec 2008, 09:16
Sure it does.
Code:
format pe native
nop    
Generates a .sys file on my system. What version of fasm are you using?

BTW: LocoDelAssembly, just putting a single nop (like my code above) is enough to get it to assemble.
Post 24 Dec 2008, 09:16
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 24 Dec 2008, 10:00
I use Fasm with Radasm.
Radasm ask me if I want to build "Win32 app" or "dll" ... I chose "win32 app" ... but there must be a problem on this side there. With "win32 app" (radasm) and "native format pe" ... I have a ".exe" file.
(Fasm 1.67.29 for windows)
Post 24 Dec 2008, 10:00
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20290
Location: In your JS exploiting you and your system
revolution 24 Dec 2008, 10:08
I suggest you contact the Radasm authors to fix the problem. Although, in the meantime, a simple renaming would probably do the trick nicely, since fasm will still generate a .sys file but Radasm just decides to name it .exe


Last edited by revolution on 24 Dec 2008, 11:12; edited 1 time in total
Post 24 Dec 2008, 10:08
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 24 Dec 2008, 10:58
ok revolution, thank you very much !
Smile
Post 24 Dec 2008, 10:58
View user's profile Send private message Send e-mail 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.