diff options
Diffstat (limited to 'src/mame/video/vector06.cpp')
-rw-r--r-- | src/mame/video/vector06.cpp | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/src/mame/video/vector06.cpp b/src/mame/video/vector06.cpp index 9acc3d1c823..285583f030a 100644 --- a/src/mame/video/vector06.cpp +++ b/src/mame/video/vector06.cpp @@ -15,36 +15,33 @@ uint32_t vector06_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - uint8_t code1,code2,code3,code4; - uint8_t col; - int y, x, b,draw_y; - uint8_t *ram = m_ram->pointer(); + uint8_t const *const ram = m_ram->pointer(); - u16 width = (m_video_mode) ? 512 : 256; + u16 const width = (m_video_mode) ? 512 : 256; rectangle screen_area(0,width+64-1,0,256+64-1); // fill border color bitmap.fill(m_color_index, screen_area); // draw image - for (x = 0; x < 32; x++) + for (int x = 0; x < 32; x++) { - for (y = 0; y < 256; y++) + for (int y = 0; y < 256; y++) { // port A of 8255 also used as scroll - draw_y = ((255-y-m_keyboard_mask) & 0xff) +32; - code1 = ram[0x8000 + x*256 + y]; - code2 = ram[0xa000 + x*256 + y]; - code3 = ram[0xc000 + x*256 + y]; - code4 = ram[0xe000 + x*256 + y]; - for (b = 0; b < 8; b++) + int const draw_y = ((255-y-m_keyboard_mask) & 0xff) +32; + uint8_t const code1 = ram[0x8000 + x*256 + y]; + uint8_t const code2 = ram[0xa000 + x*256 + y]; + uint8_t const code3 = ram[0xc000 + x*256 + y]; + uint8_t const code4 = ram[0xe000 + x*256 + y]; + for (int b = 0; b < 8; b++) { - col = BIT(code1, b) * 8 + BIT(code2, b) * 4 + BIT(code3, b)* 2+ BIT(code4, b); + uint8_t const col = BIT(code1, b) * 8 + BIT(code2, b) * 4 + BIT(code3, b)* 2+ BIT(code4, b); if (!m_video_mode) - bitmap.pix16(draw_y, x*8+(7-b)+32) = col; + bitmap.pix(draw_y, x*8+(7-b)+32) = col; else { - bitmap.pix16(draw_y, x*16+(7-b)*2+1+32) = BIT(code2, b) * 2; - bitmap.pix16(draw_y, x*16+(7-b)*2+32) = BIT(code3, b) * 2; + bitmap.pix(draw_y, x*16+(7-b)*2+1+32) = BIT(code2, b) * 2; + bitmap.pix(draw_y, x*16+(7-b)*2+32) = BIT(code3, b) * 2; } } } |