From f6c516f8c499273eac193c7ef0658332e25b9fc8 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 20 Feb 2023 15:40:45 -0500 Subject: 992board.cpp: More logging cleanup --- src/devices/bus/ti99/internal/992board.cpp | 20 ++++---------------- src/devices/bus/ti99/internal/992board.h | 1 - 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/devices/bus/ti99/internal/992board.cpp b/src/devices/bus/ti99/internal/992board.cpp index 1075e6cfb34..6d72ed15147 100644 --- a/src/devices/bus/ti99/internal/992board.cpp +++ b/src/devices/bus/ti99/internal/992board.cpp @@ -161,23 +161,11 @@ video992_32_device::video992_32_device(const machine_config &mconfig, const char m_beol = 0x7f; } -std::string video992_device::tts(attotime t) -{ - const char *sign = ""; - if (t.seconds() < 0) { - t = attotime::zero - t; - sign = "-"; - } - int nsec = t.attoseconds() / ATTOSECONDS_PER_NANOSECOND; - auto result = util::string_format("%s%04d.%03d,%03d,%03d", sign, int(t.seconds()), nsec / 1000000, (nsec / 1000) % 1000, nsec % 1000); - return result; -} - TIMER_CALLBACK_MEMBER(video992_device::hold_cpu) { int raw_vpos = screen().vpos(); - // logerror("release time: %s, diff: %s\n", tts(machine().time()), tts(machine().time()-m_hold_time)); + LOG("release time: %s, diff: %s\n", machine().time().to_string(), (machine().time()-m_hold_time).to_string()); // We're holding the CPU; release it until the next start m_hold_cb(CLEAR_LINE); m_free_timer->adjust(screen().time_until_pos((raw_vpos+1) % screen().height(), HORZ_DISPLAY_START)); @@ -187,7 +175,7 @@ TIMER_CALLBACK_MEMBER(video992_device::free_cpu) { int raw_vpos = screen().vpos(); - // logerror("hold time: %s\n", tts(machine().time())); + LOG("hold time: %s\n", machine().time().to_string()); if (m_videna) { // Hold the CPU @@ -206,7 +194,7 @@ TIMER_CALLBACK_MEMBER(video992_device::free_cpu) int linelength = 0; - // logerror("draw line %d\n", vpos); + LOG("draw line %d\n", vpos); // Get control byte uint8_t control = m_mem_read_cb(0xef00); bool text_white = BIT(control, 2); @@ -276,7 +264,7 @@ TIMER_CALLBACK_MEMBER(video992_device::free_cpu) } // +1 for the minimum hold time - // logerror("line length: %d\n", linelength); + LOG("line length: %d\n", linelength); m_hold_timer->adjust(screen().time_until_pos(raw_vpos, HORZ_DISPLAY_START + linelength * 8 + 1)); } diff --git a/src/devices/bus/ti99/internal/992board.h b/src/devices/bus/ti99/internal/992board.h index 5a6ab8b5a8f..573ab319bdf 100644 --- a/src/devices/bus/ti99/internal/992board.h +++ b/src/devices/bus/ti99/internal/992board.h @@ -64,7 +64,6 @@ protected: TIMER_CALLBACK_MEMBER(free_cpu); private: - std::string tts(attotime t); devcb_read8 m_mem_read_cb; // Callback to read memory devcb_write_line m_hold_cb; devcb_write_line m_int_cb; -- cgit v1.2.3