mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user