flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > retrieve size of a label |
Author |
|
l_inc 24 Mar 2012, 17:02
yoshimitsu
I don't think, fasm provides a documented way to check the label size. However you could use the following workaround: Code: macro xyz p { local tmp virtual not p load tmp byte from $$ end virtual if tmp = $f7 mov eax,p else if tmp = $f6 mov al,p end if } xyz [_abc] xyz [_def] _abc dd ? _def db ? Note, that you'll get a compilation error, if p is not bound to a specific size. |
|||
24 Mar 2012, 17:02 |
|
yoshimitsu 24 Mar 2012, 19:29
smart, I'm kinda too close-minded to think of such a trick, thanks :P
Thought there might be sth like "p eqtype dword ptr" or similiar, though, but thanks :) |
|||
24 Mar 2012, 19:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.