diff options
Diffstat (limited to 'src/devices/machine/ldpr8210.h')
-rw-r--r-- | src/devices/machine/ldpr8210.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/devices/machine/ldpr8210.h b/src/devices/machine/ldpr8210.h index 3cca97ce7b7..b16c0ffb64b 100644 --- a/src/devices/machine/ldpr8210.h +++ b/src/devices/machine/ldpr8210.h @@ -45,15 +45,15 @@ extern const device_type SIMUTREK_SPECIAL; class pioneer_pia { public: - UINT8 frame[7]; // (20-26) 7 characters for the chapter/frame - UINT8 text[17]; // (20-30) 17 characters for the display - UINT8 control; // (40) control lines - UINT8 latchdisplay; // flag: set if the display was latched - UINT8 portb; // (60) port B value (LEDs) - UINT8 display; // (80) display enable - UINT8 porta; // (A0) port A value (from serial decoder) - UINT8 vbi1; // (C0) VBI decoding state 1 - UINT8 vbi2; // (E0) VBI decoding state 2 + uint8_t frame[7]; // (20-26) 7 characters for the chapter/frame + uint8_t text[17]; // (20-30) 17 characters for the display + uint8_t control; // (40) control lines + uint8_t latchdisplay; // flag: set if the display was latched + uint8_t portb; // (60) port B value (LEDs) + uint8_t display; // (80) display enable + uint8_t porta; // (A0) port A value (from serial decoder) + uint8_t vbi1; // (C0) VBI decoding state 1 + uint8_t vbi2; // (E0) VBI decoding state 2 }; @@ -64,11 +64,11 @@ class pioneer_pr8210_device : public laserdisc_device { public: // construction/destruction - pioneer_pr8210_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - pioneer_pr8210_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + pioneer_pr8210_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + pioneer_pr8210_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source); // input and output - void control_w(UINT8 data); + void control_w(uint8_t data); protected: // timer IDs @@ -88,7 +88,7 @@ protected: // subclass overrides virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; - virtual INT32 player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; + virtual int32_t player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override; virtual void player_overlay(bitmap_yuy16 &bitmap) override; // internal helpers @@ -111,14 +111,14 @@ public: protected: // internal overlay helpers - void overlay_draw_group(bitmap_yuy16 &bitmap, const UINT8 *text, int count, float xstart); + void overlay_draw_group(bitmap_yuy16 &bitmap, const uint8_t *text, int count, float xstart); void overlay_erase(bitmap_yuy16 &bitmap, float xstart, float xend); - void overlay_draw_char(bitmap_yuy16 &bitmap, UINT8 ch, float xstart); + void overlay_draw_char(bitmap_yuy16 &bitmap, uint8_t ch, float xstart); // internal state - UINT8 m_control; // control line state - UINT8 m_lastcommand; // last command seen - UINT16 m_accumulator; // bit accumulator + uint8_t m_control; // control line state + uint8_t m_lastcommand; // last command seen + uint16_t m_accumulator; // bit accumulator attotime m_lastcommandtime; // time of the last command attotime m_lastbittime; // time of last bit received attotime m_firstbittime; // time of first bit in command @@ -128,8 +128,8 @@ protected: attotime m_slowtrg; // time of the last SLOW TRG pioneer_pia m_pia; // PIA state bool m_vsync; // live VSYNC state - UINT8 m_i8049_port1; // 8049 port 1 state - UINT8 m_i8049_port2; // 8049 port 2 state + uint8_t m_i8049_port1; // 8049 port 1 state + uint8_t m_i8049_port2; // 8049 port 2 state }; @@ -139,12 +139,12 @@ class simutrek_special_device : public pioneer_pr8210_device { public: // construction/destruction - simutrek_special_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + simutrek_special_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // input and output - void data_w(UINT8 data); - UINT8 ready_r() const { return !m_data_ready; } - UINT8 status_r() const { return ((m_i8748_port2 & 0x03) == 0x03) ? ASSERT_LINE : CLEAR_LINE; } + void data_w(uint8_t data); + uint8_t ready_r() const { return !m_data_ready; } + uint8_t status_r() const { return ((m_i8748_port2 & 0x03) == 0x03) ? ASSERT_LINE : CLEAR_LINE; } // external controls void set_external_audio_squelch(int state); @@ -181,12 +181,12 @@ public: protected: // internal state required_device<i8748_device> m_i8748_cpu; - UINT8 m_audio_squelch; // audio squelch value - UINT8 m_data; // parallel data for simutrek + uint8_t m_audio_squelch; // audio squelch value + uint8_t m_data; // parallel data for simutrek bool m_data_ready; // ready flag for simutrek data - UINT8 m_i8748_port2; // 8748 port 2 state - UINT8 m_controlnext; // latch to control next pair of fields - UINT8 m_controlthis; // latched value for our control over the current pair of fields + uint8_t m_i8748_port2; // 8748 port 2 state + uint8_t m_controlnext; // latch to control next pair of fields + uint8_t m_controlthis; // latched value for our control over the current pair of fields }; |