summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/drcuml.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-09-11 15:14:39 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-09-11 15:14:39 +0000
commitb10a182054d9b10b8d88fc007819a9b6b8218a9b (patch)
tree893e4a736b8aa64826dbe43de10533dde1433927 /src/emu/cpu/drcuml.c
parent746ab44148c5013bfe6142e9f3e267b3411e16ad (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Even more reset/multisession cleanup Hi mamedev, These two patches try to reduce the amount of variable in .data, which usually point to multisession/reset bugs or missing const qualifiers. The first patch just adds const to a number of items, moving them from .data to .rdata. The second patch sets other items to zero (moving them to .bss), adding reset/init code where appropriate. ~aa
Diffstat (limited to 'src/emu/cpu/drcuml.c')
-rw-r--r--src/emu/cpu/drcuml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/drcuml.c b/src/emu/cpu/drcuml.c
index 1a85d93f0e9..812d795cd58 100644
--- a/src/emu/cpu/drcuml.c
+++ b/src/emu/cpu/drcuml.c
@@ -1137,11 +1137,11 @@ void drcuml_add_comment(drcuml_block *block, const char *format, ...)
void drcuml_disasm(const drcuml_instruction *inst, char *buffer, drcuml_state *drcuml)
{
- static const char *conditions[] = { "z", "nz", "s", "ns", "c", "nc", "v", "nv", "u", "nu", "a", "be", "g", "le", "l", "ge" };
- static const char *pound_size[] = { "?", "?", "?", "?", "s", "?", "?", "?", "d" };
- static const char *bang_size[] = { "?", "b", "h", "?", "", "?", "?", "?", "d" };
- static const char *fmods[] = { "trunc", "round", "ceil", "floor", "default" };
- static const char *sizes[] = { "byte", "word", "dword", "qword" };
+ static const char *const conditions[] = { "z", "nz", "s", "ns", "c", "nc", "v", "nv", "u", "nu", "a", "be", "g", "le", "l", "ge" };
+ static const char *const pound_size[] = { "?", "?", "?", "?", "s", "?", "?", "?", "d" };
+ static const char *const bang_size[] = { "?", "b", "h", "?", "", "?", "?", "?", "d" };
+ static const char *const fmods[] = { "trunc", "round", "ceil", "floor", "default" };
+ static const char *const sizes[] = { "byte", "word", "dword", "qword" };
const drcuml_opcode_info *opinfo = opcode_info_table[inst->opcode];
char *dest = buffer;
const char *opsrc;