flat assembler
Message board for the users of flat assembler.
Index
> Main > How to tell eax, eax+ecx, 5*eax+3 from eax+ebx+ecx, 12*eax |
Author |
|
l4m2 15 Apr 2016, 08:15
Thanks but I meant that[EAX+EBX+ECX] EQTYPE [EAX+EBX] will return true, but I want to split them, not asking how to get the value of EAX+EBX+ECX or 12*EAX
|
|||
15 Apr 2016, 08:15 |
|
Picnic 15 Apr 2016, 08:15
I accidentally deleted the post, sorry about this.
Code: ;LEA EAX, [12*EAX] ;COMPILE ERROR lea eax, [eax+2*eax] shl eax, 2 |
|||
15 Apr 2016, 08:15 |
|
revolution 15 Apr 2016, 08:25
l4m2 wrote: Thanks but I meant that[EAX+EBX+ECX] EQTYPE [EAX+EBX] will return true, but I want to split them, not asking how to get the value of EAX+EBX+ECX or 12*EAX |
|||
15 Apr 2016, 08:25 |
|
l4m2 15 Apr 2016, 08:28
revolution wrote: Use MATCH. |
|||
15 Apr 2016, 08:28 |
|
revolution 15 Apr 2016, 08:33
Sure, if that is what you want to do. But until you explain your goal we can only keep guessing about what you want.
|
|||
15 Apr 2016, 08:33 |
|
l4m2 15 Apr 2016, 08:36
I want to calculate the address with some commands when it is not possible to use a SIB to find it
|
|||
15 Apr 2016, 08:36 |
|
revolution 15 Apr 2016, 09:06
You didn't mention the input set restrictions so unless you have a some restricted input set then a full parser will likely be needed.
|
|||
15 Apr 2016, 09:06 |
|
Tomasz Grysztar 15 Apr 2016, 13:58
It is worth noting that fasm g offers much better facilities in this regard, since it allows to extract the coefficients and variables of such linear polynomial and this is how it processes the SIB expressions in the 80386 macros.
|
|||
15 Apr 2016, 13:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.