summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-10-18 12:41:14 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2009-10-18 12:41:14 +0400
commite4f526be5c305c278eab9bf322978a431fa97fe9 (patch)
tree500978b368bb6d7f94d113c8620f1f16cc185b84 /disasm.c
parent66ba8cdba1948e57048c0d7399c6f6d8d2c28ca0 (diff)
downloadnasm-e4f526be5c305c278eab9bf322978a431fa97fe9.tar.gz
nasm-e4f526be5c305c278eab9bf322978a431fa97fe9.tar.bz2
nasm-e4f526be5c305c278eab9bf322978a431fa97fe9.zip
continue using is_class helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disasm.c b/disasm.c
index ede485a..561851a 100644
--- a/disasm.c
+++ b/disasm.c
@@ -1180,7 +1180,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
/* If it's a mem-only EA but we have a
register, die. */
((tmp_ins.oprs[i].segment & SEG_RMREG) &&
- !(MEMORY & ~(*p)->opd[i])) ||
+ is_class(MEMORY, (*p)->opd[i])) ||
/* If it's a reg-only EA but we have a memory
ref, die. */
(!(tmp_ins.oprs[i].segment & SEG_RMREG) &&
@@ -1343,7 +1343,7 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
o->disp_size == 32 ? "dword " :
o->disp_size == 16 ? "word " : ""), offs);
segover = NULL;
- } else if (!(REGMEM & ~t)) {
+ } else if (is_class(REGMEM, t)) {
int started = false;
if (t & BITS8)
slen +=