diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-10 23:32:05 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-10 23:32:05 +0000 |
commit | ea6bfb8107f69b6807f77cca021c7925feead1e3 (patch) | |
tree | 2ad080c4c56d95c94ffea5305f33f4da4fc9d4c2 /insns.h | |
parent | 6fa5c358b5b5591874a4c2804956b06719ad8360 (diff) | |
download | nasm-ea6bfb8107f69b6807f77cca021c7925feead1e3.tar.gz |
Use an actual enum for the opcode
Use an actual named enum for the opcode, that way it shows up in
cleartext while debugging.
Diffstat (limited to 'insns.h')
-rw-r--r-- | insns.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -20,11 +20,11 @@ #endif struct itemplate { - int opcode; /* the token, passed from "parser.c" */ - int operands; /* number of operands */ - int32_t opd[3]; /* bit flags for operand types */ - const char *code; /* the code it assembles to */ - uint32_t flags; /* some flags */ + enum opcode opcode; /* the token, passed from "parser.c" */ + int operands; /* number of operands */ + int32_t opd[3]; /* bit flags for operand types */ + const char *code; /* the code it assembles to */ + uint32_t flags; /* some flags */ }; /* |