aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrischka <grischka>2008-03-25 20:58:37 +0000
committergrischka <grischka>2008-03-25 20:58:37 +0000
commit88b3cb570eff4441a7b5adda5622d39fc332e1dd (patch)
treedc6d1ac6da434474f1d49800f2a8717437b9a20c
parent6ed868c51cab32426138c1e44e4b2c41611c889a (diff)
downloadtinycc-88b3cb570eff4441a7b5adda5622d39fc332e1dd.tar.gz
tinycc-88b3cb570eff4441a7b5adda5622d39fc332e1dd.tar.bz2
Comply to c89 compilers other than gcc (Hanzac Chen)
-rw-r--r--i386-asm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386-asm.c b/i386-asm.c
index 3d65c00..899e9d8 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -109,9 +109,12 @@ typedef struct Operand {
} Operand;
static const uint8_t reg_to_size[5] = {
+/*
[OP_REG8] = 0,
[OP_REG16] = 1,
[OP_REG32] = 2,
+*/
+ 0, 0, 1, 0, 2
};
#define WORD_PREFIX_OPCODE 0x66