mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
Use an actual enum for the opcode
Use an actual named enum for the opcode, that way it shows up in cleartext while debugging.
This commit is contained in:
parent
6fa5c358b5
commit
ea6bfb8107
10
insns.h
10
insns.h
@ -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 */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user