summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm8500/sm8500.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-02-28 11:09:00 +1100
committer Vas Crabb <vas@vastheman.com>2016-02-28 13:36:19 +1100
commitaec01e740736db267e452f0ed5947649f79e3408 (patch)
tree633ca7d80a756bfcc05d871817201c729e55142d /src/devices/cpu/sm8500/sm8500.cpp
parent3cba23966f6c1c6f9ee616e5af00ebcfcb0d0b0a (diff)
Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools
Diffstat (limited to 'src/devices/cpu/sm8500/sm8500.cpp')
-rw-r--r--src/devices/cpu/sm8500/sm8500.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/cpu/sm8500/sm8500.cpp b/src/devices/cpu/sm8500/sm8500.cpp
index 66c51c61e5b..dff83dbd9f4 100644
--- a/src/devices/cpu/sm8500/sm8500.cpp
+++ b/src/devices/cpu/sm8500/sm8500.cpp
@@ -146,43 +146,43 @@ void sm8500_cpu_device::state_string_export(const device_state_entry &entry, std
switch (entry.index())
{
case SM8500_PS:
- strprintf(str, "%04X", ( m_PS0 << 8 ) | m_PS1 );
+ str = string_format("%04X", ( m_PS0 << 8 ) | m_PS1 );
break;
case SM8500_RR0:
- strprintf(str, "%04X", mem_readword( 0x00 ) );
+ str = string_format("%04X", mem_readword( 0x00 ) );
break;
case SM8500_RR2:
- strprintf(str, "%04X", mem_readword( 0x02 ) );
+ str = string_format("%04X", mem_readword( 0x02 ) );
break;
case SM8500_RR4:
- strprintf(str, "%04X", mem_readword( 0x04 ) );
+ str = string_format("%04X", mem_readword( 0x04 ) );
break;
case SM8500_RR6:
- strprintf(str, "%04X", mem_readword( 0x06 ) );
+ str = string_format("%04X", mem_readword( 0x06 ) );
break;
case SM8500_RR8:
- strprintf(str, "%04X", mem_readword( 0x08 ) );
+ str = string_format("%04X", mem_readword( 0x08 ) );
break;
case SM8500_RR10:
- strprintf(str, "%04X", mem_readword( 0x0a ) );
+ str = string_format("%04X", mem_readword( 0x0a ) );
break;
case SM8500_RR12:
- strprintf(str, "%04X", mem_readword( 0x0c ) );
+ str = string_format("%04X", mem_readword( 0x0c ) );
break;
case SM8500_RR14:
- strprintf(str, "%04X", mem_readword( 0x0e ) );
+ str = string_format("%04X", mem_readword( 0x0e ) );
break;
case STATE_GENFLAGS:
- strprintf(str, "%c%c%c%c%c%c%c%c",
+ str = string_format("%c%c%c%c%c%c%c%c",
m_PS1 & FLAG_C ? 'C' : '.',
m_PS1 & FLAG_Z ? 'Z' : '.',
m_PS1 & FLAG_S ? 'S' : '.',