summaryrefslogtreecommitdiff
path: root/insns.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-12 11:00:50 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-12 11:00:50 -0700
commit3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6 (patch)
treeef4d366d67a69c27e7b19936d90300209cec4281 /insns.h
parent387c1c271426256ed04439d43b31cdc41a625ed1 (diff)
downloadnasm-3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6.tar.gz
Generate a byte array instead of using strings for the byte codes
Generate a byte array instead of using C compiler strings for the byte codes. This has a few advantages: - No need to special-case zero due to broken C compilers. - Only insns.pl only ever reads the string, so we can invent our own syntax. - Compaction. - We can give it the proper, unsigned type.
Diffstat (limited to 'insns.h')
-rw-r--r--insns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.h b/insns.h
index 35d05b59..49cdc8c8 100644
--- a/insns.h
+++ b/insns.h
@@ -16,7 +16,7 @@ struct itemplate {
enum opcode opcode; /* the token, passed from "parser.c" */
int operands; /* number of operands */
opflags_t opd[MAX_OPERANDS]; /* bit flags for operand types */
- const char *code; /* the code it assembles to */
+ const uint8_t *code; /* the code it assembles to */
uint32_t flags; /* some flags */
};