flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > How to do these |
Author |
|
RIxRIpt 26 Jan 2015, 12:06
2.2.2 Conditional assembly
Quote: The eqtype operator checks whether the two compared values have the same structure, ... Code: use32 macro mov op1, op2 { if op2 eqtype eax+eax lea op1, [op2] else if op1 eqtype dword[eax] & op2 eqtype [eax] push dword op2 pop op1 else ;the rest cases you could do your self.. mov op1, op2 end if } mov eax, ebx + ecx mov eax, ebx mov edx, esi + edi mov dword[edi], [esi] ;compiles to: CPU Disasm Address Hex dump Command 00CA2FF0 8D040B LEA EAX,[ECX+EBX] 00CA2FF3 89D8 MOV EAX,EBX 00CA2FF5 8D143E LEA EDX,[EDI+ESI] 00CA2FF8 FF36 PUSH DWORD PTR DS:[ESI] 00CA2FFA 8F07 POP DWORD PTR DS:[EDI] |
|||
26 Jan 2015, 12:06 |
|
l4m2 26 Jan 2015, 13:22
RIxRIpt wrote: 2.2.2 Conditional assembly But can it know "lea eax,[eax*4+ecx]"?Infinity ways to mean so. |
|||
26 Jan 2015, 13:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.