From a2537f21d525af4bd10c503134ee42df16a1d586 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 15 Mar 2015 03:25:36 +0100 Subject: clarify vars --- src/mess/drivers/hh_hmcs40.c | 20 ++++++++++---------- src/mess/drivers/hh_pic16.c | 18 +++++++++--------- src/mess/drivers/hh_tms1k.c | 22 +++++++++++----------- src/mess/drivers/hh_ucom4.c | 22 +++++++++++----------- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/mess/drivers/hh_hmcs40.c b/src/mess/drivers/hh_hmcs40.c index 58c1370a611..945e7d3ed46 100644 --- a/src/mess/drivers/hh_hmcs40.c +++ b/src/mess/drivers/hh_hmcs40.c @@ -67,24 +67,24 @@ public: optional_device m_speaker; // misc common - UINT16 m_inp_mux; + UINT16 m_inp_mux; // multiplexed inputs mask UINT16 read_inputs(int columns); virtual void machine_start(); // display common - int m_display_wait; - int m_display_maxy; - int m_display_maxx; + int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) + int m_display_maxy; // display matrix number of rows + int m_display_maxx; // display matrix number of columns - UINT32 m_grid; - UINT32 m_plate; + UINT32 m_grid; // VFD current row data + UINT32 m_plate; // VFD current column data - UINT32 m_display_state[0x20]; - UINT32 m_display_cache[0x20]; - UINT8 m_display_decay[0x20][0x20]; - UINT16 m_7seg_mask[0x20]; + UINT32 m_display_state[0x20]; // display matrix rows data + UINT16 m_7seg_mask[0x20]; // if not 0, display matrix row is a 7seg, mask indicates connected segments + UINT32 m_display_cache[0x20]; // (internal use) + UINT8 m_display_decay[0x20][0x20]; // (internal use) TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick); void display_update(); diff --git a/src/mess/drivers/hh_pic16.c b/src/mess/drivers/hh_pic16.c index 260c7fed605..df80386215a 100644 --- a/src/mess/drivers/hh_pic16.c +++ b/src/mess/drivers/hh_pic16.c @@ -48,20 +48,20 @@ public: optional_device m_speaker; // misc common - UINT8 m_b; - UINT8 m_c; + UINT8 m_b; // MCU port B data + UINT8 m_c; // MCU port C data virtual void machine_start(); // display common - int m_display_wait; - int m_display_maxy; - int m_display_maxx; + int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) + int m_display_maxy; // display matrix number of rows + int m_display_maxx; // display matrix number of columns - UINT32 m_display_state[0x20]; - UINT32 m_display_cache[0x20]; - UINT8 m_display_decay[0x20][0x20]; - UINT16 m_7seg_mask[0x20]; + UINT32 m_display_state[0x20]; // display matrix rows data + UINT16 m_7seg_mask[0x20]; // if not 0, display matrix row is a 7seg, mask indicates connected segments + UINT32 m_display_cache[0x20]; // (internal use) + UINT8 m_display_decay[0x20][0x20]; // (internal use) TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick); void display_update(); diff --git a/src/mess/drivers/hh_tms1k.c b/src/mess/drivers/hh_tms1k.c index 28477f781ff..0617949b52c 100644 --- a/src/mess/drivers/hh_tms1k.c +++ b/src/mess/drivers/hh_tms1k.c @@ -108,10 +108,10 @@ public: optional_device m_speaker; // misc common - UINT16 m_r; - UINT16 m_o; - UINT16 m_inp_mux; - bool m_power_on; + UINT16 m_r; // MCU R-pins data + UINT16 m_o; // MCU O-pins data + UINT16 m_inp_mux; // multiplexed inputs mask + bool m_power_on; // TMS0980 power-on state UINT8 read_inputs(int columns); DECLARE_INPUT_CHANGED_MEMBER(tms0980_power_button); @@ -121,14 +121,14 @@ public: virtual void machine_reset(); // display common - int m_display_wait; - int m_display_maxy; - int m_display_maxx; + int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) + int m_display_maxy; // display matrix number of rows + int m_display_maxx; // display matrix number of columns - UINT32 m_display_state[0x20]; - UINT32 m_display_cache[0x20]; - UINT8 m_display_decay[0x20][0x20]; - UINT16 m_7seg_mask[0x20]; + UINT32 m_display_state[0x20]; // display matrix rows data + UINT16 m_7seg_mask[0x20]; // if not 0, display matrix row is a 7seg, mask indicates connected segments + UINT32 m_display_cache[0x20]; // (internal use) + UINT8 m_display_decay[0x20][0x20]; // (internal use) TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick); void display_update(); diff --git a/src/mess/drivers/hh_ucom4.c b/src/mess/drivers/hh_ucom4.c index 910f216a920..e65d59b37b2 100644 --- a/src/mess/drivers/hh_ucom4.c +++ b/src/mess/drivers/hh_ucom4.c @@ -53,25 +53,25 @@ public: optional_device m_speaker; // misc common - UINT8 m_port[9]; - UINT16 m_inp_mux; + UINT8 m_port[9]; // MCU port A-I write data + UINT16 m_inp_mux; // multiplexed inputs mask UINT8 read_inputs(int columns); virtual void machine_start(); // display common - int m_display_wait; - int m_display_maxy; - int m_display_maxx; + int m_display_wait; // led/lamp off-delay in microseconds (default 33ms) + int m_display_maxy; // display matrix number of rows + int m_display_maxx; // display matrix number of columns - UINT32 m_grid; - UINT32 m_plate; + UINT32 m_grid; // VFD current row data + UINT32 m_plate; // VFD current column data - UINT32 m_display_state[0x20]; - UINT32 m_display_cache[0x20]; - UINT8 m_display_decay[0x20][0x20]; - UINT16 m_7seg_mask[0x20]; + UINT32 m_display_state[0x20]; // display matrix rows data + UINT16 m_7seg_mask[0x20]; // if not 0, display matrix row is a 7seg, mask indicates connected segments + UINT32 m_display_cache[0x20]; // (internal use) + UINT8 m_display_decay[0x20][0x20]; // (internal use) TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick); void display_update(); -- cgit v1.2.3