src/mess/drivers/pc88va.c
| r9425 | r9426 | |
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | static READ8_HANDLER( rom_bank_r ) |
| 211 | { |
| 212 | return 0xff; // bit 7 low is va91 rom bank status |
| 213 | } |
| 214 | |
| 215 | static READ8_HANDLER( key_r ) |
| 216 | { |
| 217 | // note row C bit 2 does something at POST ... some kind of test mode? |
| 218 | return 0xff; // TODO |
| 219 | } |
| 220 | |
| 210 | 221 | static ADDRESS_MAP_START( pc88va_io_map, ADDRESS_SPACE_IO, 16 ) |
| 211 | | // AM_RANGE(0x0000, 0x000f) Keyboard ROW reading |
| 222 | AM_RANGE(0x0000, 0x000f) AM_READ8(key_r,0xffff) // Keyboard ROW reading |
| 212 | 223 | // AM_RANGE(0x0010, 0x0010) Printer / Calendar Clock Interface |
| 213 | 224 | // AM_RANGE(0x0020, 0x0021) RS-232C |
| 214 | 225 | // AM_RANGE(0x0030, 0x0030) (R) DSW1 (W) Text Control Port 0 |
| r9425 | r9426 | |
| 252 | 263 | // AM_RANGE(0x0150, 0x0151) System Operational Mode |
| 253 | 264 | AM_RANGE(0x0152, 0x0153) AM_READWRITE(bios_bank_r,bios_bank_w) // Memory Map Register |
| 254 | 265 | // AM_RANGE(0x0154, 0x0155) Refresh Register (wait states) |
| 255 | | // AM_RANGE(0x0156, 0x0157) ROM bank status |
| 266 | AM_RANGE(0x0156, 0x0157) AM_READ8(rom_bank_r,0x00ff) // ROM bank status |
| 256 | 267 | // AM_RANGE(0x0158, 0x0159) Interruption Mode Modification |
| 257 | 268 | // AM_RANGE(0x015c, 0x015f) NMI mask port (strobe port) |
| 258 | 269 | // AM_RANGE(0x0160, 0x016f) DMA Controller |
| r9425 | r9426 | |
| 301 | 312 | bank_reg = 0x4100; |
| 302 | 313 | } |
| 303 | 314 | |
| 315 | static const gfx_layout pc88va_chars_8x8 = |
| 316 | { |
| 317 | 8,8, |
| 318 | RGN_FRAC(1,1), |
| 319 | 1, |
| 320 | { 0 }, |
| 321 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 322 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 323 | 8*8 |
| 324 | }; |
| 325 | |
| 326 | static const gfx_layout pc88va_chars_16x16 = |
| 327 | { |
| 328 | 16,16, |
| 329 | RGN_FRAC(1,1), |
| 330 | 1, |
| 331 | { 0 }, |
| 332 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, |
| 333 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16 }, |
| 334 | 16*16 |
| 335 | }; |
| 336 | |
| 337 | /* decoded for debugging purpose, this will be nuked in the end... */ |
| 338 | static GFXDECODE_START( pc88va ) |
| 339 | GFXDECODE_ENTRY( "kanji", 0x00000, pc88va_chars_8x8, 0, 1 ) |
| 340 | GFXDECODE_ENTRY( "kanji", 0x00000, pc88va_chars_16x16, 0, 1 ) |
| 341 | GFXDECODE_END |
| 342 | |
| 343 | |
| 304 | 344 | static MACHINE_CONFIG_START( pc88va, driver_device ) |
| 305 | 345 | |
| 306 | 346 | MDRV_CPU_ADD("maincpu", V30, 8000000) /* 8 MHz */ |
| r9425 | r9426 | |
| 320 | 360 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) |
| 321 | 361 | MDRV_PALETTE_LENGTH(32) |
| 322 | 362 | // MDRV_PALETTE_INIT( pc8801 ) |
| 363 | MDRV_GFXDECODE( pc88va ) |
| 323 | 364 | |
| 324 | 365 | MDRV_VIDEO_START( pc88va ) |
| 325 | 366 | MDRV_VIDEO_UPDATE( pc88va ) |