flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 16 Mar 2013, 19:15
The processor has actually support for such addressing: http://en.wikipedia.org/wiki/X86#Addressing_modes
Note however that fasm may sometimes perform some algebraic manipulation to either make your expression fit into one of the addressing modes (like transforming eax*5 to eax+eax*4), or re-order the terms to use a shorter addressing mode. |
|||
![]() |
|
Bob++ 16 Mar 2013, 19:30
LocoDelAssembly, thanks very much.
![]() |
|||
![]() |
|
AsmGuru62 17 Mar 2013, 15:41
Bob++
Always look into debugger for generated code: That is what OllyDbg gives ('arr' is located at address 401120): Code: 004024A0: 8B2C85 20114000 MOV EBP, [EAX*4+401120] |
|||
![]() |
|
nmaps 22 May 2013, 06:33
Yeah, check out the sib byte addressing in x86.
You can do complex this like ebp+reg+reg*base2 or ebp+reg*base2+imm32 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.