diff options
Diffstat (limited to 'src/mame/drivers/sun4.cpp')
-rw-r--r-- | src/mame/drivers/sun4.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/sun4.cpp b/src/mame/drivers/sun4.cpp index 655f548e378..cb7f5e53661 100644 --- a/src/mame/drivers/sun4.cpp +++ b/src/mame/drivers/sun4.cpp @@ -647,8 +647,8 @@ private: void start_timer(int num); - void l2p_command(int ref, int params, const char **param); - void fcodes_command(int ref, int params, const char **param); + void l2p_command(int ref, const std::vector<std::string> ¶ms); + void fcodes_command(int ref, const std::vector<std::string> ¶ms); }; uint32_t sun4_state::bw2_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) @@ -1265,11 +1265,11 @@ WRITE32_MEMBER( sun4_state::sun4_mmu_w ) printf("sun4: %08x to asi %d byte offset %x, PC = %x, mask = %08x\n", data, asi, offset << 2, m_maincpu->pc(), mem_mask); } -void sun4_state::l2p_command(int ref, int params, const char **param) +void sun4_state::l2p_command(int ref, const std::vector<std::string> ¶ms) { uint64_t addr, offset; - if (!machine().debugger().commands().validate_number_parameter(param[0], &addr)) return; + if (!machine().debugger().commands().validate_number_parameter(params[0], addr)) return; addr &= 0xffffffff; offset = addr >> 2; @@ -1302,14 +1302,14 @@ void sun4_state::l2p_command(int ref, int params, const char **param) } } -void sun4_state::fcodes_command(int ref, int params, const char **param) +void sun4_state::fcodes_command(int ref, const std::vector<std::string> ¶ms) { #if SUN4_LOG_FCODES if (params < 1) return; - bool is_on = strcmp(param[0], "on") == 0; - bool is_off = strcmp(param[0], "off") == 0; + bool is_on = (params[0] == "on"); + bool is_off = (params[0] == "off"); if (!is_on && !is_off) { @@ -1360,9 +1360,9 @@ void sun4_state::machine_start() if (machine().debug_flags & DEBUG_FLAG_ENABLED) { using namespace std::placeholders; - machine().debugger().console().register_command("l2p", CMDFLAG_NONE, 0, 1, 1, std::bind(&sun4_state::l2p_command, this, _1, _2, _3)); + machine().debugger().console().register_command("l2p", CMDFLAG_NONE, 0, 1, 1, std::bind(&sun4_state::l2p_command, this, _1, _2)); #if SUN4_LOG_FCODES - machine().debugger().console().register_command("fcodes", CMDFLAG_NONE, 0, 1, 1, std::bind(&sun4_state::fcodes_command, this, _1, _2, _3)); + machine().debugger().console().register_command("fcodes", CMDFLAG_NONE, 0, 1, 1, std::bind(&sun4_state::fcodes_command, this, _1, _2)); #endif } |