summaryrefslogtreecommitdiff
path: root/iflag.h
AgeCommit message (Collapse)AuthorFilesLines
2013-12-10iflag: Don't use c99 array initializationCyrill Gorcunov1-3/+3
It's sad but not all compilers support c99 features, so drop off IFLAG_INIT helper. Reported-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2013-12-07iflag: \Tabs -> \SpaceCyrill Gorcunov1-7/+7
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2013-12-07iflag: Introduce IFLAG_INIT helperCyrill Gorcunov1-3/+3
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2013-12-02pfmask: Limit the preferred mask to the vendor specific flagsJin Kyu Song1-4/+3
In ndisasm, the priority follows the order of instructions in insns.dat. Other iflags could affect this mechanism when a proper instruction form had a higher iflag bit set. The preferred mask bits are now limited to vendor flags (Cyrix and AMD) and other flags do not affect disassembler any more. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
2013-11-27iflag: Do the equality test in iflag_cmp() firstH. Peter Anvin1-4/+4
The equality test indicates how long we spin, so do that first. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2013-11-26iflag: In iflag_cmp() scan from the most significant word downH. Peter Anvin1-2/+2
In order for iflag_cmp() to return an ordering that makes sense, we need to scan from the most significant word downward. That way the bits with the higher index consistently are the more significant. This fixes the disassembler vendor selection algorithm. While we are doing that, make that dependency more explicit in the comments. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-24iflag: Drop the use of double underscoresH. Peter Anvin1-9/+9
Double underscores are reserved for the implementation, i.e. the C compiler and its libraries. NASM is an application and should not use this namespace. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-24iflag: Make the insns_flags array constH. Peter Anvin1-7/+7
Make the insns_flags array const, and change the helper functions to match. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-24iflag: Move instruction flag commentH. Peter Anvin1-28/+0
Move the instruction flag comment to the Perl file where they are defined. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-24iflag: remove C99 constructs, don't hardcode the number of wordsH. Peter Anvin1-4/+0
Avoid using C99 constructs when not necessary. Don't hardcode the number of words when we can autodiscover them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-24iflag: Fix dependencies, factor out static components of iflag.hH. Peter Anvin1-0/+193
Multi-dependencies don't work as expected, especially not across Make versions, this is why we don't use them and read the instructions list multiple times. iflag.h has a lot of static content, so factor out the static content. Signed-off-by: H. Peter Anvin <hpa@zytor.com>