summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/mz80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/mz80.cpp')
-rw-r--r--src/mame/video/mz80.cpp45
1 files changed, 21 insertions, 24 deletions
diff --git a/src/mame/video/mz80.cpp b/src/mame/video/mz80.cpp
index 3b0c5045e1a..e4ae83a5311 100644
--- a/src/mame/video/mz80.cpp
+++ b/src/mame/video/mz80.cpp
@@ -38,19 +38,18 @@ uint32_t mz80_state::screen_update_mz80k(screen_device &screen, bitmap_ind16 &bi
{
m_mz80k_vertical ^= 1;
m_mz80k_cursor_cnt++;
- uint8_t y,ra,chr,gfx;
- uint16_t x,sy=0,ma=0;
+ uint16_t sy=0,ma=0;
- for(y = 0; y < 25; y++ )
+ for(uint8_t y = 0; y < 25; y++ )
{
- for (ra = 0; ra < 8; ra++)
+ for (uint8_t ra = 0; ra < 8; ra++)
{
- uint16_t *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix(sy++);
- for (x = ma; x < ma + 40; x++)
+ for (uint16_t x = ma; x < ma + 40; x++)
{
- chr = m_p_videoram[x];
- gfx = m_p_chargen[(chr<<3) | ra];
+ uint8_t chr = m_p_videoram[x];
+ uint8_t gfx = m_p_chargen[(chr<<3) | ra];
/* Display a scanline of a character */
*p++ = BIT(gfx, 7);
@@ -73,19 +72,18 @@ uint32_t mz80_state::screen_update_mz80kj(screen_device &screen, bitmap_ind16 &b
{
m_mz80k_vertical ^= 1;
m_mz80k_cursor_cnt++;
- uint8_t y,ra,chr,gfx;
- uint16_t x,sy=0,ma=0;
+ uint16_t sy=0,ma=0;
- for(y = 0; y < 25; y++ )
+ for(uint8_t y = 0; y < 25; y++ )
{
- for (ra = 0; ra < 8; ra++)
+ for (uint8_t ra = 0; ra < 8; ra++)
{
- uint16_t *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix(sy++);
- for (x = ma; x < ma + 40; x++)
+ for (uint16_t x = ma; x < ma + 40; x++)
{
- chr = m_p_videoram[x];
- gfx = m_p_chargen[(chr<<3) | ra];
+ uint8_t chr = m_p_videoram[x];
+ uint8_t gfx = m_p_chargen[(chr<<3) | ra];
/* Display a scanline of a character */
*p++ = BIT(gfx, 0);
@@ -108,19 +106,18 @@ uint32_t mz80_state::screen_update_mz80a(screen_device &screen, bitmap_ind16 &bi
{
m_mz80k_vertical ^= 1;
m_mz80k_cursor_cnt++;
- uint8_t y,ra,chr,gfx;
- uint16_t x,sy=0, ma=m_p_ram[0x17d] | (m_p_ram[0x17e] << 8);
+ uint16_t sy=0, ma=m_p_ram[0x17d] | (m_p_ram[0x17e] << 8);
- for(y = 0; y < 25; y++ )
+ for(uint8_t y = 0; y < 25; y++ )
{
- for (ra = 0; ra < 8; ra++)
+ for (uint8_t ra = 0; ra < 8; ra++)
{
- uint16_t *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix(sy++);
- for (x = ma; x < ma + 40; x++)
+ for (uint16_t x = ma; x < ma + 40; x++)
{
- chr = m_p_videoram[x&0x7ff];
- gfx = m_p_chargen[(chr<<3) | ra];
+ uint8_t chr = m_p_videoram[x&0x7ff];
+ uint8_t gfx = m_p_chargen[(chr<<3) | ra];
/* Display a scanline of a character */
*p++ = BIT(gfx, 7);