flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bolzano_1989
In the following tutorial:
http://www.friedspace.com/assembly/moving.php , could you tell me the differences and the effects of the differences between the following statements? Code: MOV [myvar1],CH Code: MOV myvar1,CH I've just read FASM's document and know that the following 2 statements are different: Code: mov eax,3 Code: mov eax,[3] How about these 2 statements? Code: MOV [myvar1],CH Code: MOV myvar1,CH |
|||
![]() |
|
ouadji
the bottle "x", and the contents of the bottle "[x]" ![]() |
|||
![]() |
|
LocoDelAssembly
For the assemblers supporting such syntax, mov mem, reg/imm and mov [mem], reg/imm are exactly the same thing, however in fasm no such thing is supported to make sure there is a single way to indicate memory access (i.e. since mov ebx+esi, reg/imm is not supported because you need square brackets in the first operand, then neither mov var, reg/imm is supported, you have to always use mov [var], reg/imm instead).
In the last instruction of Teehee's example, in other assemblers you'd need "mov eax, OFFSET myvar1", but in fasm, using symbos "naked" (without brackets), is the equivalent of using OFFSET. |
|||
![]() |
|
bolzano_1989
Thank you Teehee and LocoDelAssembly
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.