summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/dsp16/dsp16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/dsp16/dsp16.c')
-rw-r--r--src/emu/cpu/dsp16/dsp16.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/emu/cpu/dsp16/dsp16.c b/src/emu/cpu/dsp16/dsp16.c
index 9520c125784..42913c5361d 100644
--- a/src/emu/cpu/dsp16/dsp16.c
+++ b/src/emu/cpu/dsp16/dsp16.c
@@ -212,26 +212,26 @@ const address_space_config *dsp16_device::memory_space_config(address_spacenum s
// for the debugger
//-------------------------------------------------
-void dsp16_device::state_string_export(const device_state_entry &entry, astring &str)
+void dsp16_device::state_string_export(const device_state_entry &entry, std::string &str)
{
switch (entry.index())
{
case STATE_GENFLAGS:
- str.printf("(below)");
+ strprintf(str, "(below)");
break;
case DSP16_AUC:
{
- astring alignString;
+ std::string alignString;
const UINT8 align = m_auc & 0x03;
switch (align)
{
- case 0x00: alignString.printf("xy"); break;
- case 0x01: alignString.printf("/4"); break;
- case 0x02: alignString.printf("x4"); break;
- case 0x03: alignString.printf(",,"); break;
+ case 0x00: strprintf(alignString,"xy"); break;
+ case 0x01: strprintf(alignString,"/4"); break;
+ case 0x02: strprintf(alignString,"x4"); break;
+ case 0x03: strprintf(alignString,",,"); break;
}
- str.printf("%c%c%c%c%c%s",
+ strprintf(str, "%c%c%c%c%c%s",
m_auc & 0x40 ? 'Y':'.',
m_auc & 0x20 ? '1':'.',
m_auc & 0x10 ? '0':'.',
@@ -242,7 +242,7 @@ void dsp16_device::state_string_export(const device_state_entry &entry, astring
}
case DSP16_PSW:
- str.printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
+ strprintf(str, "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
m_psw & 0x8000 ? 'M':'.',
m_psw & 0x4000 ? 'E':'.',
m_psw & 0x2000 ? 'L':'.',
@@ -263,16 +263,16 @@ void dsp16_device::state_string_export(const device_state_entry &entry, astring
case DSP16_PIOC:
{
- astring strobeString;
+ std::string strobeString;
const UINT8 strobe = (m_pioc & 0x6000) >> 13;
switch (strobe)
{
- case 0x00: strobeString.printf("1T"); break;
- case 0x01: strobeString.printf("2T"); break;
- case 0x02: strobeString.printf("3T"); break;
- case 0x03: strobeString.printf("4T"); break;
+ case 0x00: strprintf(strobeString, "1T"); break;
+ case 0x01: strprintf(strobeString, "2T"); break;
+ case 0x02: strprintf(strobeString, "3T"); break;
+ case 0x03: strprintf(strobeString, "4T"); break;
}
- str.printf("%c%s%c%c%c%c%c%c%c%c%c%c%c%c%c",
+ strprintf(str, "%c%s%c%c%c%c%c%c%c%c%c%c%c%c%c",
m_pioc & 0x8000 ? 'I':'.',
strobeString.c_str(),
m_pioc & 0x1000 ? 'O':'I',
@@ -294,16 +294,16 @@ void dsp16_device::state_string_export(const device_state_entry &entry, astring
// Placeholder for a better view later (TODO)
case DSP16_SIOC:
{
- astring clkString;
+ std::string clkString;
const UINT8 clk = (m_sioc & 0x0180) >> 7;
switch (clk)
{
- case 0x00: clkString.printf("/4"); break;
- case 0x01: clkString.printf("12"); break;
- case 0x02: clkString.printf("16"); break;
- case 0x03: clkString.printf("20"); break;
+ case 0x00: strprintf(clkString, "/4"); break;
+ case 0x01: strprintf(clkString, "12"); break;
+ case 0x02: strprintf(clkString, "16"); break;
+ case 0x03: strprintf(clkString, "20"); break;
}
- str.printf("%c%s%c%c%c%c%c%c%c",
+ strprintf(str, "%c%s%c%c%c%c%c%c%c",
m_sioc & 0x0200 ? 'I':'O',
clkString.c_str(),
m_sioc & 0x0040 ? 'L':'M',