summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-03-18 16:37:44 -0400
committerMatthias Hopf <mhopf@suse.de>2011-03-21 17:03:18 +0100
commitb85d23d8573f20604bb93a551367348ac8afacfd (patch)
treed580e2e3ef251d95b0d72dc5f3e1799d4a563372
parent35fe254bebf2d6398446ad32d0e57b8d8da9b8e4 (diff)
Fix mask op
The mask is always an immediate attribute. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Matthias Hopf <mhopf@suse.de>
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f1e600f..7b445c7 100644
--- a/main.c
+++ b/main.c
@@ -429,7 +429,7 @@ int op_mask (uint8_t *d, char *out) {
t += sub_dest (t, out, op->desttype, attr >> 6, size_align[(attr & 0x38)>>3], op->destindex);
out += strlen (out);
out += sprintf (out, " & ");
- t += sub_src (t, out, attr & 0x07, (attr & 0x38) >> 3, size_align[(attr & 0x38)>>3], 0);
+ t += sub_src (t, out, D_IM, (attr & 0x38) >> 3, size_align[(attr & 0x38)>>3], 0);
out += strlen (out);
out += sprintf (out, " | ");
t += sub_src (t, out, attr & 0x07, (attr & 0x38) >> 3, size_align[(attr & 0x38)>>3], 0);