src/mess/drivers/iq151.c
| r12242 | r12243 | |
| 29 | 29 | - Line 32 does not scroll, should it show? |
| 30 | 30 | (could be reserved for a status line in a terminal mode) |
| 31 | 31 | |
| 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 | | |
| 36 | 32 | - Sort out the issue with memory location 6. If it isn't zero the computer hangs. |
| 37 | 33 | But if it is always forced to zero, the keys repeat way too fast. Timer |
| 38 | 34 | currently set to 3Hz for reasonable repeat, but it is far from perfect. |
| r12242 | r12243 | |
| 259 | 255 | MACHINE_RESET_MEMBER( iq151_state ) |
| 260 | 256 | { |
| 261 | 257 | 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); |
| 263 | 259 | memory_set_bank(machine(), "boot", 1); |
| 264 | 260 | machine().scheduler().timer_set(attotime::from_usec(5), FUNC(iq151_boot)); |
| 265 | 261 | } |
| r12242 | r12243 | |
| 297 | 293 | |
| 298 | 294 | gfx = m_p_chargen[chrstart | (chr<<3) | ra ]; |
| 299 | 295 | |
| 296 | // in Video 32, chars above 0x7f have colors inverted |
| 297 | if (m_width == 32 && m_p_videoram[x] > 0x7f) |
| 298 | gfx = ~gfx; |
| 299 | |
| 300 | 300 | //display cursor if at cursor position and flash on |
| 301 | 301 | if ( (x==cursor) && (m_framecnt & 0x08) ) |
| 302 | 302 | gfx = 0xff; |
| 303 | 303 | |
| 304 | 304 | /* 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 | } |
| 307 | 311 | *p++ = BIT(gfx, 5); |
| 308 | 312 | *p++ = BIT(gfx, 4); |
| 309 | 313 | *p++ = BIT(gfx, 3); |
| r12242 | r12243 | |
| 418 | 422 | }; |
| 419 | 423 | |
| 420 | 424 | static 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 ) |
| 423 | 427 | GFXDECODE_END |
| 424 | 428 | |
| 425 | 429 | static MACHINE_CONFIG_START( iq151, iq151_state ) |
| r12242 | r12243 | |
| 433 | 437 | MCFG_SCREEN_REFRESH_RATE(50) |
| 434 | 438 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 435 | 439 | 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) |
| 438 | 442 | MCFG_GFXDECODE(iq151) |
| 439 | 443 | MCFG_PALETTE_LENGTH(2) |
| 440 | 444 | MCFG_PALETTE_INIT(monochrome_green) |