summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/cubeqcpu
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/cubeqcpu
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/cubeqcpu')
-rw-r--r--src/emu/cpu/cubeqcpu/cubeqcpu.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/emu/cpu/cubeqcpu/cubeqcpu.c b/src/emu/cpu/cubeqcpu/cubeqcpu.c
index ded17b6064b..abd299b42bb 100644
--- a/src/emu/cpu/cubeqcpu/cubeqcpu.c
+++ b/src/emu/cpu/cubeqcpu/cubeqcpu.c
@@ -20,7 +20,7 @@
***************************************************************************/
/* Am2901 Instruction Fields */
-static const char* ins[] =
+static const char *const ins[] =
{
"ADD ",
"SUBR ",
@@ -32,7 +32,7 @@ static const char* ins[] =
"EXNOR",
};
-static const char* src[] =
+static const char *const src[] =
{
"A,Q",
"A,B",
@@ -44,7 +44,7 @@ static const char* src[] =
"D,0",
};
-static const char* dst[] =
+static const char *const dst[] =
{
"QREG ",
"NOP ",
@@ -749,7 +749,7 @@ static int cquestsnd_execute(int cycles)
static offs_t cquestsnd_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram)
{
- static const char* jmps[] =
+ static const char *const jmps[] =
{
"JUMP ",
" ",
@@ -762,7 +762,7 @@ static offs_t cquestsnd_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
};
- static const char* latches[] =
+ static const char *const latches[] =
{
"PLTCH ",
"DAC ",
@@ -1202,7 +1202,7 @@ static int cquestrot_execute(int cycles)
static offs_t cquestrot_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram)
{
- static const char* jmps[] =
+ static const char *const jmps[] =
{
" ",
"JSEQ ",
@@ -1223,7 +1223,7 @@ static offs_t cquestrot_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
"JNZERO ",
};
- static const char* youts[] =
+ static const char *const youts[] =
{
" ",
" ",
@@ -1235,7 +1235,7 @@ static offs_t cquestrot_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
"Y2D ",
};
- static const char* spfs[] =
+ static const char *const spfs[] =
{
" ",
" ",
@@ -1760,7 +1760,7 @@ static int cquestlin_execute(int cycles)
static offs_t cquestlin_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram)
{
- static const char* jmps[] =
+ static const char *const jmps[] =
{
" ",
"JMSB ",
@@ -1781,7 +1781,7 @@ static offs_t cquestlin_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
"?????",
};
- static const char* latches[] =
+ static const char *const latches[] =
{
" ",
"SEQLTCH",
@@ -1793,7 +1793,7 @@ static offs_t cquestlin_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const
"ZLTCH ",
};
- static const char* spfs[] =
+ static const char *const spfs[] =
{
" ",
"FSTOP ",