summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ldv1000.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/machine/ldv1000.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/devices/machine/ldv1000.cpp')
-rw-r--r--src/devices/machine/ldv1000.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/machine/ldv1000.cpp b/src/devices/machine/ldv1000.cpp
index 81947c2b73f..e1b4f8e1a70 100644
--- a/src/devices/machine/ldv1000.cpp
+++ b/src/devices/machine/ldv1000.cpp
@@ -121,7 +121,7 @@ ROM_END
// pioneer_ldv1000_device - constructor
//-------------------------------------------------
-pioneer_ldv1000_device::pioneer_ldv1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+pioneer_ldv1000_device::pioneer_ldv1000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: laserdisc_device(mconfig, PIONEER_LDV1000, "Pioneer LD-V1000", tag, owner, clock, "ldv1000", __FILE__),
m_z80_cpu(*this, "ldv1000"),
m_z80_ctc(*this, "ldvctc"),
@@ -148,7 +148,7 @@ pioneer_ldv1000_device::pioneer_ldv1000_device(const machine_config &mconfig, co
// LD-V1000
//-------------------------------------------------
-void pioneer_ldv1000_device::data_w(UINT8 data)
+void pioneer_ldv1000_device::data_w(uint8_t data)
{
m_command = data;
if (LOG_COMMANDS)
@@ -160,7 +160,7 @@ void pioneer_ldv1000_device::data_w(UINT8 data)
// enter_w - set the state of the ENTER strobe
//-------------------------------------------------
-void pioneer_ldv1000_device::enter_w(UINT8 data)
+void pioneer_ldv1000_device::enter_w(uint8_t data)
{
}
@@ -234,7 +234,7 @@ void pioneer_ldv1000_device::device_timer(emu_timer &timer, device_timer_id id,
case TID_VBI_DATA_FETCH:
{
// appears to return data in reverse order
- UINT32 lines[3];
+ uint32_t lines[3];
lines[0] = get_field_code(LASERDISC_CODE_LINE1718, false);
lines[1] = get_field_code(LASERDISC_CODE_LINE17, false);
lines[2] = get_field_code(LASERDISC_CODE_LINE16, false);
@@ -246,8 +246,8 @@ void pioneer_ldv1000_device::device_timer(emu_timer &timer, device_timer_id id,
// loop over lines
for (int line = 0; line < 3; line++)
{
- UINT8 *dest = &m_vbi[line * 7];
- UINT32 data = lines[line];
+ uint8_t *dest = &m_vbi[line * 7];
+ uint32_t data = lines[line];
// the logic only processes leadin/leadout/frame number codes
if (data == VBI_CODE_LEADIN || data == VBI_CODE_LEADOUT || (data & VBI_MASK_CAV_PICTURE) == VBI_CODE_CAV_PICTURE)
@@ -328,7 +328,7 @@ void pioneer_ldv1000_device::player_vsync(const vbi_metadata &vbi, int fieldnum,
// the first visible line of the frame
//-------------------------------------------------
-INT32 pioneer_ldv1000_device::player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime)
+int32_t pioneer_ldv1000_device::player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime)
{
if (LOG_FRAMES_SEEN)
{
@@ -389,7 +389,7 @@ WRITE8_MEMBER( pioneer_ldv1000_device::z80_decoder_display_port_w )
READ8_MEMBER( pioneer_ldv1000_device::z80_decoder_display_port_r )
{
// reads from offset 3 constitute actual reads from the display and decoder chips
- UINT8 result = 0;
+ uint8_t result = 0;
if (offset == 3)
{
// selection 4 represents the VBI data reading
@@ -411,7 +411,7 @@ READ8_MEMBER( pioneer_ldv1000_device::z80_decoder_display_port_r )
READ8_MEMBER( pioneer_ldv1000_device::z80_controller_r )
{
// note that this is a cheesy implementation; the real thing relies on exquisite timing
- UINT8 result = m_command ^ 0xff;
+ uint8_t result = m_command ^ 0xff;
m_command = 0xff;
return result;
}
@@ -467,7 +467,7 @@ READ8_MEMBER( pioneer_ldv1000_device::ppi0_portc_r )
$80 = DUMP (N20-1) -- code reads the state and waits for it to change
*/
- UINT8 result = 0x00;
+ uint8_t result = 0x00;
if (!m_vsync)
result |= 0x10;
if (!m_vbiready)
@@ -491,7 +491,7 @@ WRITE8_MEMBER( pioneer_ldv1000_device::ppi0_portc_w )
*/
// set the new value
- UINT8 prev = m_portc0;
+ uint8_t prev = m_portc0;
m_portc0 = data;
if (LOG_PORT_IO && ((data ^ prev) & 0x0f) != 0)
{
@@ -531,7 +531,7 @@ READ8_MEMBER( pioneer_ldv1000_device::ppi1_porta_r )
*/
slider_position sliderpos = get_slider_position();
- UINT8 result = 0x00;
+ uint8_t result = 0x00;
// bit 0: /FOCUS LOCK
if (!focus_on())
@@ -581,7 +581,7 @@ WRITE8_MEMBER( pioneer_ldv1000_device::ppi1_portb_w )
*/
// set the new value
- UINT8 prev = m_portb1;
+ uint8_t prev = m_portb1;
m_portb1 = data;
if (LOG_PORT_IO && ((data ^ prev) & 0xff) != 0)
{
@@ -635,7 +635,7 @@ WRITE8_MEMBER( pioneer_ldv1000_device::ppi1_portc_w )
*/
// set the new value
- UINT8 prev = m_portc1;
+ uint8_t prev = m_portc1;
m_portc1 = data;
if (LOG_PORT_IO && ((data ^ prev) & 0xcf) != 0)
{