flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > LEA optimization (MOV) |
Author |
|
revolution 27 Oct 2016, 23:50
I would be happy to help but I don't know what you are asking. I can't find any actual question in your post. It appears as though you are trying to "understand what the 'best' solution is", but you don't define your metric for "best".
|
|||
27 Oct 2016, 23:50 |
|
rugxulo 28 Oct 2016, 05:07
My question is whether my macro is sufficient (to convert this limited type of usage) or can you point me to a more suitable one?
|
|||
28 Oct 2016, 05:07 |
|
revolution 28 Oct 2016, 05:29
Well you do say "it seems to work" and "this limited type of usage". I expect there are cases in the broader realm of source code that your macro would fail (i.e. it isn't fully general) but you don't appear to need it to be fully perfect.
I would suggest this: Since you only need it for this one case then to test it use a disassembler to create a text file and strip the hex bytes just leaving the addresses and the decoded instructions. Then compare the old to the new. When they match then you are done. Unless it uses some type of SMC, or something equally terrible, then as long at the disassembled instructions match then the actual bytes used to generate them are not important. |
|||
28 Oct 2016, 05:29 |
|
rugxulo 30 Oct 2016, 19:59
Quote:
N.B. Lines like "LEA AX,[BX+SI+5150h]" are assembled correctly whether NOSMART is enabled or not. |
|||
30 Oct 2016, 19:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.