flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
l4m2
Code: LEA EAX, [EAX] ;OK LEA EAX, [EAX+ECX] ;OK LEA EAX, [5*EAX+3] ;OK, TURNED INTO 4*EAX+EAX+3 LEA EAX, [EAX+EBX+ECX] ;COMPILE ERROR LEA EAX, [12*EAX] ;COMPILE ERROR |
|||
![]() |
|
l4m2
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
|
|||
![]() |
|
Picnic
I accidentally deleted the post, sorry about this.
Code: ;LEA EAX, [12*EAX] ;COMPILE ERROR lea eax, [eax+2*eax] shl eax, 2 |
|||
![]() |
|
l4m2
revolution wrote: Use MATCH. |
|||
![]() |
|
revolution
Sure, if that is what you want to do. But until you explain your goal we can only keep guessing about what you want.
|
|||
![]() |
|
l4m2
I want to calculate the address with some commands when it is not possible to use a SIB to find it
|
|||
![]() |
|
revolution
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.
|
|||
![]() |
|
Tomasz Grysztar
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.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.