Previous 15994 Revisions Next

r12243 Friday 15th July, 2011 at 21:00:00 UTC by Sandro Ronco
[IQ151] Fixed some video problems. (no whatsnew)
[src/mess/drivers]iq151.c

src/mess/drivers/iq151.c
r12242r12243
2929- Line 32 does not scroll, should it show?
3030  (could be reserved for a status line in a terminal mode)
3131
32- In 64 character-per-line mode, there are extra symbols showing. This is
33  because the system writes 0x0d characters to screen memory, and in the
34  64-width chargen, this is a visible graphics character.
35
3632- Sort out the issue with memory location 6. If it isn't zero the computer hangs.
3733  But if it is always forced to zero, the keys repeat way too fast. Timer
3834  currently set to 3Hz for reasonable repeat, but it is far from perfect.
r12242r12243
259255MACHINE_RESET_MEMBER( iq151_state )
260256{
261257   m_width = input_port_read(machine(), "FE") ? 32 : 64;
262   machine().primary_screen->set_visible_area(0, m_width*8-1, 0, 32*8-1);
258   machine().primary_screen->set_visible_area(0, (m_width == 32 ? 32*8 : 64*6)-1, 0, 32*8-1);
263259   memory_set_bank(machine(), "boot", 1);
264260   machine().scheduler().timer_set(attotime::from_usec(5), FUNC(iq151_boot));
265261}
r12242r12243
297293
298294            gfx = m_p_chargen[chrstart | (chr<<3) | ra ];
299295
296            // in Video 32, chars above 0x7f have colors inverted
297            if (m_width == 32 && m_p_videoram[x] > 0x7f)
298               gfx = ~gfx;
299
300300            //display cursor if at cursor position and flash on
301301            if ( (x==cursor) && (m_framecnt & 0x08) )
302302               gfx = 0xff;
303303
304304            /* Display a scanline of a character */
305            *p++ = BIT(gfx, 7);
306            *p++ = BIT(gfx, 6);
305            if (m_width == 32)
306            {
307               // bit 7 and 6 are ignored in Video 64 mode
308               *p++ = BIT(gfx, 7);
309               *p++ = BIT(gfx, 6);
310            }
307311            *p++ = BIT(gfx, 5);
308312            *p++ = BIT(gfx, 4);
309313            *p++ = BIT(gfx, 3);
r12242r12243
418422};
419423
420424static GFXDECODE_START( iq151 )
421   GFXDECODE_ENTRY( "chargen", 0x0000, iq151_32_charlayout, 0, 1 )
422   GFXDECODE_ENTRY( "chargen", 0x0400, iq151_64_charlayout, 0, 1 )
425   GFXDECODE_ENTRY( "chargen", 0x0800, iq151_32_charlayout, 0, 1 )
426   GFXDECODE_ENTRY( "chargen", 0x0000, iq151_64_charlayout, 0, 1 )
423427GFXDECODE_END
424428
425429static MACHINE_CONFIG_START( iq151, iq151_state )
r12242r12243
433437   MCFG_SCREEN_REFRESH_RATE(50)
434438   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
435439   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
436   MCFG_SCREEN_SIZE(64*8, 32*8)
437   MCFG_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1)
440   MCFG_SCREEN_SIZE(64*6, 32*8)
441   MCFG_SCREEN_VISIBLE_AREA(0, 64*6-1, 0, 32*8-1)
438442   MCFG_GFXDECODE(iq151)
439443   MCFG_PALETTE_LENGTH(2)
440444   MCFG_PALETTE_INIT(monochrome_green)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team