Does FASM use Intel syntax?

I tried to compile the following code in FASM:

mov DWORD PTR [ebp - 4], 1234567  

He gave me the error "Invalid Expression". However, the following code worked:

mov DWORD [ebp - 4], 1234567 

So, FASM uses Intel syntax (I assume that the first line of code corresponds to Intel syntax)?

0
source share
1 answer

He gave me the error "Invalid expression."

Unlike MASM (and others), FASM does not need ptr.

So, does FASM use Intel syntax?

Yes.

But there are some differences between different collectors, for example:

Address loading:

  • MASM: mov eax, offset memvar
  • FASM: mov eax, memvar

Loading value:

  • MASM: mov eax, memvar
  • FASM: mov eax, [memvar]

I suggest you read the FASM Programmer Manual .

+1
source

Source: https://habr.com/ru/post/1569273/


All Articles