diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-05-25 12:06:29 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-05-25 12:06:29 -0700 |
commit | e1f985c167495185c55c46e640f2607604597383 (patch) | |
tree | 3ddd11d12e6a3bf6e21c39d1342175d5488d8d39 /insns.h | |
parent | 22538e2b6713d6e4e05fb82c6969320a519b4c93 (diff) | |
download | nasm-e1f985c167495185c55c46e640f2607604597383.tar.gz |
Reorganize the source code into subdirectories
Make the source code easier to understand and keep track of by
organizing it into subdirectories depending on the function.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'insns.h')
-rw-r--r-- | insns.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/insns.h b/insns.h deleted file mode 100644 index 8f04d13c..00000000 --- a/insns.h +++ /dev/null @@ -1,51 +0,0 @@ -/* insns.h header file for insns.c - * - * The Netwide Assembler is copyright (C) 1996 Simon Tatham and - * Julian Hall. All rights reserved. The software is - * redistributable under the license given in the file "LICENSE" - * distributed in the NASM archive. - */ - -#ifndef NASM_INSNS_H -#define NASM_INSNS_H - -#include "nasm.h" -#include "tokens.h" -#include "iflag.h" - -/* if changed, ITEMPLATE_END should be also changed accordingly */ -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 */ - decoflags_t deco[MAX_OPERANDS]; /* bit flags for operand decorators */ - const uint8_t *code; /* the code it assembles to */ - uint32_t iflag_idx; /* some flags referenced by index */ -}; - -/* Disassembler table structure */ - -/* - * If n == -1, then p points to another table of 256 - * struct disasm_index, otherwise p points to a list of n - * struct itemplates to consider. - */ -struct disasm_index { - const void *p; - int n; -}; - -/* Tables for the assembler and disassembler, respectively */ -extern const struct itemplate * const nasm_instructions[]; -extern const struct disasm_index itable[256]; -extern const struct disasm_index * const itable_vex[NASM_VEX_CLASSES][32][4]; - -/* Common table for the byte codes */ -extern const uint8_t nasm_bytecodes[]; - -/* - * this define is used to signify the end of an itemplate - */ -#define ITEMPLATE_END {-1,-1,{-1,-1,-1,-1,-1},{-1,-1,-1,-1,-1},NULL,0} - -#endif /* NASM_INSNS_H */ |