mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
992board.cpp: More logging cleanup
This commit is contained in:
parent
161475f27b
commit
f6c516f8c4
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user