diff options
Diffstat (limited to 'src/mess/video')
| -rw-r--r-- | src/mess/video/a7800.c | 18 | ||||
| -rw-r--r-- | src/mess/video/abc80.c | 2 | ||||
| -rw-r--r-- | src/mess/video/abc800.c | 4 | ||||
| -rw-r--r-- | src/mess/video/apollo.c | 5 | ||||
| -rw-r--r-- | src/mess/video/apple3.c | 4 | ||||
| -rw-r--r-- | src/mess/video/gb_lcd.c | 2 | ||||
| -rw-r--r-- | src/mess/video/gime.h | 4 | ||||
| -rw-r--r-- | src/mess/video/intv.c | 4 | ||||
| -rw-r--r-- | src/mess/video/mikromik.c | 2 | ||||
| -rw-r--r-- | src/mess/video/nascom1.c | 4 | ||||
| -rw-r--r-- | src/mess/video/osi.c | 2 | ||||
| -rw-r--r-- | src/mess/video/pc1251.c | 70 | ||||
| -rw-r--r-- | src/mess/video/pc1350.c | 90 | ||||
| -rw-r--r-- | src/mess/video/pc1401.c | 50 | ||||
| -rw-r--r-- | src/mess/video/tmc600.c | 4 | ||||
| -rw-r--r-- | src/mess/video/v1050.c | 2 | ||||
| -rw-r--r-- | src/mess/video/vtvideo.c | 52 | ||||
| -rw-r--r-- | src/mess/video/vtvideo.h | 2 | ||||
| -rw-r--r-- | src/mess/video/zx8301.h | 2 |
19 files changed, 159 insertions, 164 deletions
diff --git a/src/mess/video/a7800.c b/src/mess/video/a7800.c index 146ce764ad2..afe40687431 100644 --- a/src/mess/video/a7800.c +++ b/src/mess/video/a7800.c @@ -4,7 +4,7 @@ Routines to control the Atari 7800 video hardware - 2014-03-24 Mike Saarna Fixed DMA regarding startup, shutdown and + 2014-03-24 Mike Saarna Fixed DMA regarding startup, shutdown and cycle stealing. 2013-05-08 huygens rewrite to emulate line ram buffers (mostly fixes Kung-Fu Master @@ -126,11 +126,11 @@ void a7800_state::maria_draw_scanline() int x, d, c, i, pixel_cell, cells; int maria_cycles; - if ( m_maria_offset == 0 ) - maria_cycles = 5+21; // DMA startup + last line shutdown - else - maria_cycles = 5+16; // DMA startup + other line shutdown - + if ( m_maria_offset == 0 ) + maria_cycles = 5+21; // DMA startup + last line shutdown + else + maria_cycles = 5+16; // DMA startup + other line shutdown + cells = 0; /* Process this DLL entry */ @@ -202,9 +202,9 @@ void a7800_state::maria_draw_scanline() } } } - // spin the CPU for Maria DMA, if it's not already spinning for WSYNC - if ( ! m_maria_wsync ) - m_maincpu->spin_until_time(m_maincpu->cycles_to_attotime(maria_cycles/4)); // Maria clock rate is 4 times that of the CPU + // spin the CPU for Maria DMA, if it's not already spinning for WSYNC + if ( ! m_maria_wsync ) + m_maincpu->spin_until_time(m_maincpu->cycles_to_attotime(maria_cycles/4)); // Maria clock rate is 4 times that of the CPU // draw line buffer to screen m_active_buffer = !m_active_buffer; // switch buffers diff --git a/src/mess/video/abc80.c b/src/mess/video/abc80.c index c282fbf41dd..681bfc88b81 100644 --- a/src/mess/video/abc80.c +++ b/src/mess/video/abc80.c @@ -203,7 +203,7 @@ MACHINE_CONFIG_FRAGMENT( abc80_video ) MCFG_SCREEN_UPDATE_DRIVER(abc80_state, screen_update) MCFG_SCREEN_RAW_PARAMS(XTAL_11_9808MHz/2, ABC80_HTOTAL, ABC80_HBEND, ABC80_HBSTART, ABC80_VTOTAL, ABC80_VBEND, ABC80_VBSTART) - + MCFG_GFXDECODE_ADD("gfxdecode", "palette", abc80) MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette") MACHINE_CONFIG_END diff --git a/src/mess/video/abc800.c b/src/mess/video/abc800.c index 799c19eac49..bceb3d57eb2 100644 --- a/src/mess/video/abc800.c +++ b/src/mess/video/abc800.c @@ -71,7 +71,7 @@ offs_t abc800c_state::translate_trom_offset(offs_t offset) void abc800c_state::hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect) { const pen_t *pen = m_palette->pens(); - + UINT16 addr = 0; for (int y = m_hrs; y < MIN(cliprect.max_y + 1, m_hrs + 480); y += 2) @@ -201,7 +201,7 @@ MACHINE_CONFIG_END void abc800m_state::hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect) { UINT16 addr = 0; - + const pen_t *pen = m_palette->pens(); for (int y = m_hrs + VERTICAL_PORCH_HACK; y < MIN(cliprect.max_y + 1, m_hrs + VERTICAL_PORCH_HACK + 240); y++) diff --git a/src/mess/video/apollo.c b/src/mess/video/apollo.c index 41608fe2c80..44f5dad8095 100644 --- a/src/mess/video/apollo.c +++ b/src/mess/video/apollo.c @@ -1725,7 +1725,6 @@ apollo_graphics_15i::apollo_graphics_15i(const machine_config &mconfig,const cha m_lut_fifo(NULL), m_bt458(NULL) { - } apollo_graphics_15i::apollo_graphics_15i(const machine_config &mconfig,const char *tag, device_t *owner, UINT32 clock, device_type type,const char *name, const char *shortname, const char *source) : @@ -1884,7 +1883,7 @@ void apollo_graphics_15i::device_reset() memset(m_image_memory, 0, m_image_memory_size * 2); // register_vblank_callback(this); - + /* FIXME: register for VBLANK callbacks */ register_vblank_callback(); } @@ -1960,7 +1959,7 @@ void apollo_graphics_19i::device_reset() READ16_MEMBER( apollo_graphics_15i::apollo_mgm_r ) -{ +{ if (is_mono()) { return apollo_mem_r(space, offset, mem_mask); diff --git a/src/mess/video/apple3.c b/src/mess/video/apple3.c index 6fd638c748a..2062ac4896e 100644 --- a/src/mess/video/apple3.c +++ b/src/mess/video/apple3.c @@ -19,7 +19,7 @@ #define DKGRAY 5 #define BLUE 6 #define LTBLUE 7 -#define BROWN 8 +#define BROWN 8 #define ORANGE 9 #define GRAY 10 #define PINK 11 @@ -411,7 +411,7 @@ void apple3_state::apple3_video_graphics_chires(bitmap_ind16 &bitmap) UINT32 apple3_state::screen_update_apple3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { -// printf("gfx mode %x\n", m_flags & (VAR_VM3|VAR_VM1|VAR_VM0)); +// printf("gfx mode %x\n", m_flags & (VAR_VM3|VAR_VM1|VAR_VM0)); switch(m_flags & (VAR_VM3|VAR_VM1|VAR_VM0)) { diff --git a/src/mess/video/gb_lcd.c b/src/mess/video/gb_lcd.c index e26434d08fe..55dcfe7a9f2 100644 --- a/src/mess/video/gb_lcd.c +++ b/src/mess/video/gb_lcd.c @@ -1166,7 +1166,7 @@ void cgb_lcd_device::update_sprites() { data = *((UINT16 *) &m_vram[((oam[3] & 0x8)<<10) + (oam[2] & tilemask) * 16 + (line - oam[0]) * 2]); } - + data = LITTLE_ENDIANIZE_INT16(data); switch (oam[3] & 0xA0) diff --git a/src/mess/video/gime.h b/src/mess/video/gime.h index bdc00cdba43..64006270c3a 100644 --- a/src/mess/video/gime.h +++ b/src/mess/video/gime.h @@ -21,9 +21,9 @@ // GIME CONFIG/INTERFACE //************************************************************************** -#define MCFG_GIME_HSYNC_CALLBACK MCFG_MC6847_HSYNC_CALLBACK +#define MCFG_GIME_HSYNC_CALLBACK MCFG_MC6847_HSYNC_CALLBACK -#define MCFG_GIME_FSYNC_CALLBACK MCFG_MC6847_FSYNC_CALLBACK +#define MCFG_GIME_FSYNC_CALLBACK MCFG_MC6847_FSYNC_CALLBACK #define MCFG_GIME_IRQ_CALLBACK(_write) \ devcb = &gime_base_device::set_irq_wr_callback(*device, DEVCB2_##_write); diff --git a/src/mess/video/intv.c b/src/mess/video/intv.c index cd418092c03..12bede1db5a 100644 --- a/src/mess/video/intv.c +++ b/src/mess/video/intv.c @@ -82,7 +82,7 @@ UINT32 intv_state::screen_update_intvkbd(screen_device &screen, bitmap_ind16 &bi for(x=0;x<40;x++) { offs = current_row*64+x; - + m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, videoram[offs], 7, /* white */ @@ -93,7 +93,7 @@ UINT32 intv_state::screen_update_intvkbd(screen_device &screen, bitmap_ind16 &bi { /* draw the cursor as a solid white block */ /* (should use a filled rect here!) */ - + m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, 191, /* a block */ 7, /* white */ diff --git a/src/mess/video/mikromik.c b/src/mess/video/mikromik.c index 428ee4e438d..5799837ed8b 100644 --- a/src/mess/video/mikromik.c +++ b/src/mess/video/mikromik.c @@ -121,6 +121,6 @@ MACHINE_CONFIG_FRAGMENT( mm1m6_video ) MCFG_DEVICE_ADD(UPD7220_TAG, UPD7220, XTAL_18_720MHz/8) MCFG_DEVICE_ADDRESS_MAP(AS_0, mm1_upd7220_map) - MCFG_UPD7220_DISPLAY_PIXELS_CALLBACK_OWNER(mm1_state, hgdc_display_pixels) + MCFG_UPD7220_DISPLAY_PIXELS_CALLBACK_OWNER(mm1_state, hgdc_display_pixels) MCFG_VIDEO_SET_SCREEN(SCREEN_TAG) MACHINE_CONFIG_END diff --git a/src/mess/video/nascom1.c b/src/mess/video/nascom1.c index 1a2356d3654..89a992f6062 100644 --- a/src/mess/video/nascom1.c +++ b/src/mess/video/nascom1.c @@ -16,7 +16,6 @@ UINT32 nascom1_state::screen_update_nascom1(screen_device &screen, bitmap_ind16 for (sx = 0; sx < 48; sx++) { - m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, videoram[0x03ca + sx], 1, 0, 0, sx * 8, 0); } @@ -25,7 +24,6 @@ UINT32 nascom1_state::screen_update_nascom1(screen_device &screen, bitmap_ind16 { for (sx = 0; sx < 48; sx++) { - m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, videoram[0x000a + (sy * 64) + sx], 1, 0, 0, sx * 8, (sy + 1) * 16); } @@ -40,7 +38,6 @@ UINT32 nascom1_state::screen_update_nascom2(screen_device &screen, bitmap_ind16 for (sx = 0; sx < 48; sx++) { - m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, videoram[0x03ca + sx], 1, 0, 0, sx * 8, 0); } @@ -49,7 +46,6 @@ UINT32 nascom1_state::screen_update_nascom2(screen_device &screen, bitmap_ind16 { for (sx = 0; sx < 48; sx++) { - m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, videoram[0x000a + (sy * 64) + sx], 1, 0, 0, sx * 8, (sy + 1) * 14); } diff --git a/src/mess/video/osi.c b/src/mess/video/osi.c index 3125460f18b..6c4ec0d96ce 100644 --- a/src/mess/video/osi.c +++ b/src/mess/video/osi.c @@ -158,7 +158,7 @@ MACHINE_CONFIG_FRAGMENT( uk101_video ) MCFG_SCREEN_ADD(SCREEN_TAG, RASTER) MCFG_SCREEN_REFRESH_RATE(50) MCFG_SCREEN_UPDATE_DRIVER(uk101_state, screen_update) - MCFG_SCREEN_SIZE(64*8, 16*16) + MCFG_SCREEN_SIZE(64*8, 16*16) MCFG_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 16*16-1) MCFG_SCREEN_PALETTE("palette") diff --git a/src/mess/video/pc1251.c b/src/mess/video/pc1251.c index 1bf93ac97bd..e10531dffc3 100644 --- a/src/mess/video/pc1251.c +++ b/src/mess/video/pc1251.c @@ -4,11 +4,11 @@ #include "includes/pc1251.h" static const POCKETC_FIGURE /*busy={ - "11 1 1 11 1 1", - "1 1 1 1 1 1 1", - "11 1 1 1 1 1", - "1 1 1 1 1 1", - "11 1 11 1e" + "11 1 1 11 1 1", + "1 1 1 1 1 1 1", + "11 1 1 1 1 1", + "1 1 1 1 1 1", + "11 1 11 1e" },*/ def={ "11 111 111", "1 1 1 1", @@ -22,11 +22,11 @@ static const POCKETC_FIGURE /*busy={ " 1 1 1 1 1 1", "11 1 1 1 1 1e" }, /*hyp={ - "1 1 1 1 11", - "1 1 1 1 1 1", - "111 1 1 11", - "1 1 1 1", - "1 1 1 1e" + "1 1 1 1 11", + "1 1 1 1 1 1", + "111 1 1 11", + "1 1 1 1", + "1 1 1 1e" },*/ de={ "11 111", "1 1 1", @@ -46,23 +46,23 @@ static const POCKETC_FIGURE /*busy={ "1 1 1 1 1 1", "1 1 1 1 11e" }, /*braces={ - " 1 1", - "1 1", - "1 1", - "1 1", - " 1 1e" + " 1 1", + "1 1", + "1 1", + "1 1", + " 1 1e" }, m={ - "1 1", - "11 11", - "1 1 1", - "1 1", - "1 1e" + "1 1", + "11 11", + "1 1 1", + "1 1", + "1 1e" }, e={ - "111", - "1", - "111", - "1", - "111e" + "111", + "1", + "111", + "1", + "111e" },*/ run={ "11 1 1 1 1", "1 1 1 1 11 1", @@ -76,17 +76,17 @@ static const POCKETC_FIGURE /*busy={ "1 1 1 1 1", "1 1 1 1e" }, /*japan={ - " 1 1 11 1 1 1", - " 1 1 1 1 1 1 1 11 1", - " 1 111 11 111 1 11", - "1 1 1 1 1 1 1 1 1", - " 1 1 1 1 1 1 1 1e" + " 1 1 11 1 1 1", + " 1 1 1 1 1 1 1 11 1", + " 1 111 11 111 1 11", + "1 1 1 1 1 1 1 1 1", + " 1 1 1 1 1 1 1 1e" }, sml={ - " 11 1 1 1", - "1 111 1", - " 1 1 1 1", - " 1 1 1 1", - "11 1 1 111e" + " 11 1 1 1", + "1 111 1", + " 1 1 1 1", + " 1 1 1 1", + "11 1 1 111e" },*/ rsv={ "11 11 1 1", "1 1 1 1 1", diff --git a/src/mess/video/pc1350.c b/src/mess/video/pc1350.c index ae1dd3ace1a..c6c8ff695fc 100644 --- a/src/mess/video/pc1350.c +++ b/src/mess/video/pc1350.c @@ -4,11 +4,11 @@ #include "includes/pc1350.h" static const POCKETC_FIGURE /*busy={ - "11 1 1 11 1 1", - "1 1 1 1 1 1 1", - "11 1 1 1 1 1", - "1 1 1 1 1 1", - "11 1 11 1e" + "11 1 1 11 1 1", + "1 1 1 1 1 1 1", + "11 1 1 1 1 1", + "1 1 1 1 1 1", + "11 1 11 1e" },*/ def={ "11 111 111", "1 1 1 1", @@ -22,47 +22,47 @@ static const POCKETC_FIGURE /*busy={ " 1 1 1 1 1 1", "11 1 1 1 1 1e" }, /*hyp={ - "1 1 1 1 11", - "1 1 1 1 1 1", - "111 1 1 11", - "1 1 1 1", - "1 1 1 1e" + "1 1 1 1 11", + "1 1 1 1 1 1", + "111 1 1 11", + "1 1 1 1", + "1 1 1 1e" }, de={ - "11 111", - "1 1 1", - "1 1 111", - "1 1 1", - "11 111e" + "11 111", + "1 1 1", + "1 1 111", + "1 1 1", + "11 111e" }, g={ - " 11", - "1", - "1 1", - "1 1", - " 11e" + " 11", + "1", + "1 1", + "1 1", + " 11e" }, rad={ - "11 1 11", - "1 1 1 1 1 1", - "11 111 1 1", - "1 1 1 1 1 1", - "1 1 1 1 11e" + "11 1 11", + "1 1 1 1 1 1", + "11 111 1 1", + "1 1 1 1 1 1", + "1 1 1 1 11e" }, braces={ - " 1 1", - "1 1", - "1 1", - "1 1", - " 1 1e" + " 1 1", + "1 1", + "1 1", + "1 1", + " 1 1e" }, m={ - "1 1", - "11 11", - "1 1 1", - "1 1", - "1 1e" + "1 1", + "11 11", + "1 1 1", + "1 1", + "1 1e" }, e={ - "111", - "1", - "111", - "1", - "111e" + "111", + "1", + "111", + "1", + "111e" },*/ run={ "11 1 1 1 1", "1 1 1 1 11 1", @@ -88,11 +88,11 @@ static const POCKETC_FIGURE /*busy={ " 1 1 1 1", "11 1 1 111e" }/*, rsv={ - "11 11 1 1", - "1 1 1 1 1", - "11 1 1 1", - "1 1 1 1 1", - "1 1 11 1e" + "11 11 1 1", + "1 1 1 1 1", + "11 1 1 1", + "1 1 1 1 1", + "1 1 11 1e" }*/; READ8_MEMBER(pc1350_state::pc1350_lcd_read) diff --git a/src/mess/video/pc1401.c b/src/mess/video/pc1401.c index 4a8f088f1e4..3f908ead1ff 100644 --- a/src/mess/video/pc1401.c +++ b/src/mess/video/pc1401.c @@ -93,35 +93,35 @@ static const POCKETC_FIGURE busy={ "1", "111e" }/*, run={ - "11 1 1 1 1", - "1 1 1 1 11 1", - "11 1 1 1 11", - "1 1 1 1 1 1", - "1 1 1 1 1e" + "11 1 1 1 1", + "1 1 1 1 11 1", + "11 1 1 1 11", + "1 1 1 1 1 1", + "1 1 1 1 1e" }, pro={ - "11 11 1 ", - "1 1 1 1 1 1", - "11 11 1 1", - "1 1 1 1 1", - "1 1 1 1e" + "11 11 1 ", + "1 1 1 1 1 1", + "11 11 1 1", + "1 1 1 1 1", + "1 1 1 1e" }, japan={ - " 1 1 11 1 1 1", - " 1 1 1 1 1 1 1 11 1", - " 1 111 11 111 1 11", - "1 1 1 1 1 1 1 1 1", - " 1 1 1 1 1 1 1 1e" + " 1 1 11 1 1 1", + " 1 1 1 1 1 1 1 11 1", + " 1 111 11 111 1 11", + "1 1 1 1 1 1 1 1 1", + " 1 1 1 1 1 1 1 1e" }, sml={ - " 11 1 1 1", - "1 111 1", - " 1 1 1 1", - " 1 1 1 1", - "11 1 1 111e" + " 11 1 1 1", + "1 111 1", + " 1 1 1 1", + " 1 1 1 1", + "11 1 1 111e" }, rsv={ - "11 11 1 1", - "1 1 1 1 1", - "11 1 1 1", - "1 1 1 1 1", - "1 1 11 1e" + "11 11 1 1", + "1 1 1 1 1", + "11 1 1 1", + "1 1 1 1 1", + "1 1 11 1e" }*/; #define DOWN 57 diff --git a/src/mess/video/tmc600.c b/src/mess/video/tmc600.c index 1bca0a5eb42..9001b7e0948 100644 --- a/src/mess/video/tmc600.c +++ b/src/mess/video/tmc600.c @@ -127,7 +127,7 @@ MACHINE_CONFIG_FRAGMENT( tmc600_video ) // video hardware MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, CDP1869_DOT_CLK_PAL) MCFG_TIMER_DRIVER_ADD_PERIODIC("blink", tmc600_state, blink_tick, attotime::from_hz(2)) - + MCFG_GFXDECODE_ADD("gfxdecode", CDP1869_TAG":palette", tmc600) // sound hardware @@ -135,7 +135,7 @@ MACHINE_CONFIG_FRAGMENT( tmc600_video ) MCFG_CDP1869_ADD(CDP1869_TAG, CDP1869_DOT_CLK_PAL, cdp1869_page_ram) MCFG_CDP1869_COLOR_CLOCK(CDP1869_COLOR_CLK_PAL) MCFG_CDP1869_CHAR_PCB_READ_OWNER(tmc600_state, tmc600_pcb_r) - MCFG_CDP1869_CHAR_RAM_READ_OWNER(tmc600_state, tmc600_char_ram_r) + MCFG_CDP1869_CHAR_RAM_READ_OWNER(tmc600_state, tmc600_char_ram_r) MCFG_CDP1869_PAL_NTSC_CALLBACK(VCC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mess/video/v1050.c b/src/mess/video/v1050.c index 930f2d0ea95..1e357e9aeae 100644 --- a/src/mess/video/v1050.c +++ b/src/mess/video/v1050.c @@ -132,6 +132,6 @@ MACHINE_CONFIG_FRAGMENT( v1050_video ) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) MCFG_SCREEN_SIZE(640, 400) MCFG_SCREEN_VISIBLE_AREA(0,640-1, 0, 400-1) - + MCFG_PALETTE_ADD_MONOCHROME_GREEN_HIGHLIGHT("palette") MACHINE_CONFIG_END diff --git a/src/mess/video/vtvideo.c b/src/mess/video/vtvideo.c index fd880f163d1..6c198165d9a 100644 --- a/src/mess/video/vtvideo.c +++ b/src/mess/video/vtvideo.c @@ -10,7 +10,7 @@ ---------------------------------- - TESTS REQUIRED : do line and character attributes (plus combinations) match real hardware? - - JUMPY SOFT SCROLL : Soft scroll *should* be synced with beam or DMA (line linking/unlinking is done during VBI, in less than 550ms). + - JUMPY SOFT SCROLL : Soft scroll *should* be synced with beam or DMA (line linking/unlinking is done during VBI, in less than 550ms). See 4.7.4 and up in VT manual. - UNDOCUMENTED FEATURES of DC011 / DC012 (CLUES WANTED) @@ -253,7 +253,7 @@ WRITE8_MEMBER( vt100_video_device::dc012_w ) // set higher part scroll m_scroll_latch = (m_scroll_latch & 0x03) | ((data & 0x03) << 2); - m_scroll_latch_valid = 1; // MSB is written last. + m_scroll_latch_valid = 1; // MSB is written last. } } else @@ -570,35 +570,35 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x, // Offset to bitmap in char-rom (used later below) int i = scan_line; - // Affects 'i' / 'y_preset' / 'scan_line' (= LOOP VARIABLE) - if ( m_scroll_latch_valid == 1) - { - // **** START IF SCROLL REGION: - if ( (old_scroll_region == 0) && (scroll_region == 1) ) - { + // Affects 'i' / 'y_preset' / 'scan_line' (= LOOP VARIABLE) + if ( m_scroll_latch_valid == 1) + { + // **** START IF SCROLL REGION: + if ( (old_scroll_region == 0) && (scroll_region == 1) ) + { if (scan_line == 0) // * EXECUTED ONCE * - { - scan_line = m_scroll_latch; // write less lines ! SIDE EFFECT ON LOOP ! + { + scan_line = m_scroll_latch; // write less lines ! SIDE EFFECT ON LOOP ! i = m_scroll_latch; // set hard offset to char-rom } - } - - // **** MIDDLE OF REGION: - if ( (old_scroll_region == 1) && (scroll_region == 1) ) - { - if ( ( y * 10 + scan_line - m_scroll_latch ) >= 0 ) - y_preset = y * 10 + scan_line - m_scroll_latch; - } - - // **** END OF SCROLL REGION: - if ( (old_scroll_region == 1) && (scroll_region == 0) ) - { + } + + // **** MIDDLE OF REGION: + if ( (old_scroll_region == 1) && (scroll_region == 1) ) + { + if ( ( y * 10 + scan_line - m_scroll_latch ) >= 0 ) + y_preset = y * 10 + scan_line - m_scroll_latch; + } + + // **** END OF SCROLL REGION: + if ( (old_scroll_region == 1) && (scroll_region == 0) ) + { if (i > (9 - m_scroll_latch) ) - { old_scroll_region = m_scroll_latch_valid; // keep track - return; // WHAT HAPPENS WITH THE REST OF THE LINE (BLANK ?) + { old_scroll_region = m_scroll_latch_valid; // keep track + return; // WHAT HAPPENS WITH THE REST OF THE LINE (BLANK ?) + } } - } - } // (IF) scroll latch valid + } // (IF) scroll latch valid switch (display_type) { diff --git a/src/mess/video/vtvideo.h b/src/mess/video/vtvideo.h index 5e3fc375f3e..dab107d58ae 100644 --- a/src/mess/video/vtvideo.h +++ b/src/mess/video/vtvideo.h @@ -115,7 +115,7 @@ extern const device_type RAINBOW_VIDEO; MCFG_DEVICE_ADD(_tag, RAINBOW_VIDEO, 0) \ MCFG_DEVICE_CONFIG(_intrf) \ MCFG_VIDEO_SET_SCREEN(_screen_tag) - + #endif diff --git a/src/mess/video/zx8301.h b/src/mess/video/zx8301.h index 21ed54a861a..2211b83e811 100644 --- a/src/mess/video/zx8301.h +++ b/src/mess/video/zx8301.h @@ -103,7 +103,7 @@ private: required_device<cpu_device> m_cpu; devcb2_write_line m_write_vsync; - + //address_space *m_data; int m_dispoff; // display off |
