opcodes: constify & localize z80 opcodes

These aren't used outside of this module, and are never modified.
Mark it static to avoid bad exported variable name issues.
This commit is contained in:
Mike Frysinger
2021-06-27 01:58:18 -04:00
parent 52b8387412
commit ac8ef6961e
2 changed files with 7 additions and 2 deletions

View File

@@ -414,7 +414,7 @@ dump (struct buffer *buf, disassemble_info * info, const char *txt)
}
/* Table to disassemble machine codes with prefix 0xED. */
struct tab_elt opc_ed[] =
static const struct tab_elt opc_ed[] =
{
{ 0x30, 0xFF, prt, "mul d,e", INSS_Z80N },
{ 0x31, 0xFF, prt, "add hl,a", INSS_Z80N },
@@ -525,7 +525,7 @@ static int
pref_ed (struct buffer *buf, disassemble_info *info,
const char *txt ATTRIBUTE_UNUSED)
{
struct tab_elt *p;
const struct tab_elt *p;
if (fetch_data (buf, info, 1))
{