diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-12 11:00:50 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-12 11:00:50 -0700 |
commit | 3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6 (patch) | |
tree | ef4d366d67a69c27e7b19936d90300209cec4281 /insns.h | |
parent | 387c1c271426256ed04439d43b31cdc41a625ed1 (diff) | |
download | nasm-3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6.tar.gz nasm-3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6.tar.bz2 nasm-3720f7beaeaefeb1e6bbf1bb8416ef78d4abe6e6.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ }; |