开发者

64 Bit Assemblers issue

开发者 https://www.devze.com 2023-03-17 16:07 出处:网络
(Coding on win7 64 bit) I have started to code in assembly yesterday, and I downloaded flat assembler.

(Coding on win7 64 bit)

I have started to code in assembly yesterday, and I downloaded flat assembler. Now, when I compile the code, I get a .fas file, and a .bin file.

So I heard you change their extensions to .exe or .com, and thats your built code. But when I run it, I get an error because I'm trying to run a 32 bit application.

I tried:

  1. Change the file execution to 32 bit through the file properties (Read it from google) but there is such an option there.

  2. A differernt assembler - many. I've tried NASM 64 bit, same problem. And like 2 more which I have deleted since they didn't work.

Can anyone give me a download link to a WORKING 64 BIT ASSEMBLER? I've been looking for 1 all day :(

Plus if it has a dissassembling option it would be even better, but not necessery.

By the way, I rather an assembler which has an IDE too (like FASM, you code inside the program and it informs you of errors when you compile), NOT like NASM which is, simply, an assembler.

And I've got another question: I have found many 32 bit assembler guides but much less 64 bit ones. Should I learn from the 32 bit too? I assume there are 64 bit only instructions, which I won't find in these guides, but as long as an all of the existing 32 bit instruction 开发者_运维技巧ARE EQUAL when coding in 64 bit, it's fine with me. So, are they?

And... If anyone got a good x64 guide, I'd appreaciate if he could post a link here.

Thanks in advance.


You will have to link the generated binary. For NASM (Netwide Assembler) you can specify the output format, but it defaults to bin if you don't supply the argument.

Simply specify the nam -fwin64 ... option. For more information on Windows-64 bit assembler in NASM, see section 7.6 of the NASM manual.


FASM does have x64 support. Did you read the manual? Did you look at the examples in *EXAMPLES\WIN64*?

0

精彩评论

暂无评论...
验证码 换一张
取 消