summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/pit8253.h
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-08-14 10:21:26 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-08-14 10:21:26 +0000
commitdd7d8e176176f9afd244dece0505ffee335ab3e2 (patch)
treed6e1169ccebbee111cbfe5e349c29e8637ae026c /src/emu/machine/pit8253.h
parent6420e3263d897bfc6b7608e84d18f57072631304 (diff)
small cleanup
Diffstat (limited to 'src/emu/machine/pit8253.h')
-rw-r--r--src/emu/machine/pit8253.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/emu/machine/pit8253.h b/src/emu/machine/pit8253.h
index abb77a2c83f..64bb700a59a 100644
--- a/src/emu/machine/pit8253.h
+++ b/src/emu/machine/pit8253.h
@@ -62,17 +62,15 @@ struct pit8253_timer
UINT8 control; /* 6-bit control byte */
UINT8 status; /* status byte - 8254 only */
UINT8 lowcount; /* LSB of new counter value for 16-bit writes */
- INT32 rmsb; /* 1 = Next read is MSB of 16-bit value */
- INT32 wmsb; /* 1 = Next write is MSB of 16-bit value */
- INT32 output; /* 0 = low, 1 = high */
-
- INT32 gate; /* gate input (0 = low, 1 = high) */
- INT32 latched_count; /* number of bytes of count latched */
- INT32 latched_status; /* 1 = status latched (8254 only) */
- INT32 null_count; /* 1 = mode control or count written, 0 = count loaded */
- INT32 phase; /* see phase definition tables in simulate2(), below */
-
- UINT32 cycles_to_output; /* cycles until output callback called */
+ int rmsb; /* 1 = Next read is MSB of 16-bit value */
+ int wmsb; /* 1 = Next write is MSB of 16-bit value */
+ int output; /* 0 = low, 1 = high */
+
+ int gate; /* gate input (0 = low, 1 = high) */
+ int latched_count; /* number of bytes of count latched */
+ int latched_status; /* 1 = status latched (8254 only) */
+ int null_count; /* 1 = mode control or count written, 0 = count loaded */
+ int phase; /* see phase definition tables in simulate2(), below */
};
class pit8253_device : public device_t
@@ -125,7 +123,7 @@ protected:
private:
int pit8253_gate(pit8253_timer *timer);
- void decrease_counter_value(pit8253_timer *timer, UINT64 cycles);
+ void decrease_counter_value(pit8253_timer *timer, INT64 cycles);
void load_counter_value(pit8253_timer *timer);
void set_output(pit8253_timer *timer, int output);
void simulate2(pit8253_timer *timer, INT64 elapsed_cycles);