diff options
Diffstat (limited to 'src/devices/video/msm6255.cpp')
-rw-r--r-- | src/devices/video/msm6255.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/devices/video/msm6255.cpp b/src/devices/video/msm6255.cpp index b1c83556103..de34d079cde 100644 --- a/src/devices/video/msm6255.cpp +++ b/src/devices/video/msm6255.cpp @@ -136,7 +136,7 @@ device_memory_interface::space_config_vector msm6255_device::memory_space_config // ir_r - //------------------------------------------------- -READ8_MEMBER( msm6255_device::ir_r ) +uint8_t msm6255_device::ir_r() { return m_ir; } @@ -146,7 +146,7 @@ READ8_MEMBER( msm6255_device::ir_r ) // ir_w - //------------------------------------------------- -WRITE8_MEMBER( msm6255_device::ir_w ) +void msm6255_device::ir_w(uint8_t data) { m_ir = data & 0x0f; } @@ -156,7 +156,7 @@ WRITE8_MEMBER( msm6255_device::ir_w ) // dr_r - //------------------------------------------------- -READ8_MEMBER( msm6255_device::dr_r ) +uint8_t msm6255_device::dr_r() { uint8_t data = 0; @@ -205,7 +205,7 @@ READ8_MEMBER( msm6255_device::dr_r ) // dr_w - //------------------------------------------------- -WRITE8_MEMBER( msm6255_device::dr_w ) +void msm6255_device::dr_w(uint8_t data) { switch (m_ir) { @@ -328,9 +328,7 @@ void msm6255_device::draw_scanline(bitmap_ind16 &bitmap, const rectangle &clipre uint8_t cpd = m_cpr & CPR_CPD_MASK; uint16_t car = (m_cur << 8) | m_clr; - int sx, x; - - for (sx = 0; sx < hn; sx++) + for (int sx = 0; sx < hn; sx++) { uint8_t data = read_byte(ma, ra); @@ -345,9 +343,9 @@ void msm6255_device::draw_scanline(bitmap_ind16 &bitmap, const rectangle &clipre } } - for (x = 0; x < hp; x++) + for (int x = 0; x < hp; x++) { - bitmap.pix16(y, (sx * hp) + x) = BIT(data, 7); + bitmap.pix(y, (sx * hp) + x) = BIT(data, 7); data <<= 1; } |