src/mess/drivers/pc8801.c
| r15781 | r15782 | |
| 33 | 33 | - American Success: reads the light pen? |
| 34 | 34 | - Alpha (demo): stuck note in title screen, doesn't seem to go further; |
| 35 | 35 | - Arion: random hang, FDC CPU communication issue? |
| 36 | | - Art of War: spurious sound irq; |
| 37 | 36 | - Balance of Power: uses the SIO port for mouse polling; |
| 38 | 37 | - Bishoujo Baseball Gakuen: checks ym2608 after intro screen; |
| 39 | 38 | - The Black Onyx: writes a katakana msg: "rino kata ha koko ni orimasen" then doesn't show up anything. (Needs user disk?) |
| 40 | 39 | - Brunette: No sound, eventually hangs at gameplay; |
| 41 | 40 | - Can Can Bunny: bitmap artifacts on intro, could be either ALU or floppy issues; |
| 42 | 41 | - Carrot: gfxs are messed up |
| 42 | - Castle Excellent: hard-crashes my OS if attempts it to boot in 15 KHz Monitor Mode (???) |
| 43 | 43 | - Combat: mono gfx mode enabled, but I don't see any noticeable quirk? |
| 44 | 44 | - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?) |
| 45 | 45 | - Grobda: palette is ugly (parent pc8801 only); |
| r15781 | r15782 | |
| 59 | 59 | - Arcus 2 (at PCM loading) |
| 60 | 60 | - Bokosuka Wars (polls read ID command) |
| 61 | 61 | - Bruce Lee (fdccpu reads port C in a weird fashion) |
| 62 | | - Burning Point (trips a spurious irq) |
| 63 | 62 | - Castle Excellent (sets sector 0xf4?) |
| 64 | 63 | - Card Game Pro 8.8k Plus Unit 1 (prints Disk i/o error 135 in vram, not visible for whatever reason) |
| 65 | 64 | - Cuby Panic (copy protection routine at 0x911A) |
| r15781 | r15782 | |
| 302 | 301 | DECLARE_WRITE8_MEMBER(pc88_crtc_param_w); |
| 303 | 302 | DECLARE_READ8_MEMBER(pc8801_crtc_status_r); |
| 304 | 303 | DECLARE_WRITE8_MEMBER(pc88_crtc_cmd_w); |
| 304 | DECLARE_READ8_MEMBER(pc8801_dmac_r); |
| 305 | 305 | DECLARE_WRITE8_MEMBER(pc8801_dmac_w); |
| 306 | DECLARE_READ8_MEMBER(pc8801_dmac_status_r); |
| 306 | 307 | DECLARE_WRITE8_MEMBER(pc8801_dmac_mode_w); |
| 307 | 308 | DECLARE_READ8_MEMBER(pc8801_extram_mode_r); |
| 308 | 309 | DECLARE_WRITE8_MEMBER(pc8801_extram_mode_w); |
| r15781 | r15782 | |
| 647 | 648 | UINT8 blink; |
| 648 | 649 | int pal; |
| 649 | 650 | |
| 651 | popmessage("%02x",state->m_crtc.param[0][4]); |
| 652 | |
| 650 | 653 | for(y=0;y<y_size;y++) |
| 651 | 654 | { |
| 652 | 655 | for(x=0;x<80;x++) |
| r15781 | r15782 | |
| 692 | 695 | pc8801_state *state = screen.machine().driver_data<pc8801_state>(); |
| 693 | 696 | bitmap.fill(screen.machine().pens[0], cliprect); |
| 694 | 697 | |
| 698 | // popmessage("%04x %04x %02x",state->m_dma_address[2],state->m_dma_counter[2],state->m_dmac_mode); |
| 699 | |
| 695 | 700 | if(state->m_gfx_ctrl & 8) |
| 696 | 701 | { |
| 697 | 702 | if(state->m_gfx_ctrl & 0x10) |
| r15781 | r15782 | |
| 1322 | 1327 | // printf("CRTC cmd %s polled\n",crtc_command[data >> 5]); |
| 1323 | 1328 | } |
| 1324 | 1329 | |
| 1330 | READ8_MEMBER(pc8801_state::pc8801_dmac_r) |
| 1331 | { |
| 1332 | printf("DMAC R %08x\n",offset); |
| 1333 | return 0xff; |
| 1334 | } |
| 1335 | |
| 1325 | 1336 | WRITE8_MEMBER(pc8801_state::pc8801_dmac_w) |
| 1326 | 1337 | { |
| 1327 | | |
| 1328 | 1338 | if(offset & 1) |
| 1329 | 1339 | m_dma_counter[offset >> 1] = (m_dmac_ff) ? (m_dma_counter[offset >> 1]&0xff)|(data<<8) : (m_dma_counter[offset >> 1]&0xff00)|(data&0xff); |
| 1330 | 1340 | else |
| r15781 | r15782 | |
| 1333 | 1343 | m_dmac_ff ^= 1; |
| 1334 | 1344 | } |
| 1335 | 1345 | |
| 1346 | READ8_MEMBER(pc8801_state::pc8801_dmac_status_r) |
| 1347 | { |
| 1348 | printf("DMAC R STATUS\n"); |
| 1349 | return 0xff; |
| 1350 | } |
| 1351 | |
| 1336 | 1352 | WRITE8_MEMBER(pc8801_state::pc8801_dmac_mode_w) |
| 1337 | 1353 | { |
| 1338 | 1354 | m_dmac_mode = data; |
| 1355 | m_dmac_ff = 0; |
| 1356 | |
| 1357 | if(data != 0xe4 && data != 0xa0) |
| 1358 | printf("%02x DMAC mode\n",data); |
| 1339 | 1359 | } |
| 1340 | 1360 | |
| 1341 | 1361 | READ8_MEMBER(pc8801_state::pc8801_extram_mode_r) |
| r15781 | r15782 | |
| 1573 | 1593 | AM_RANGE(0x54, 0x5b) AM_WRITE(pc8801_palram_w) |
| 1574 | 1594 | AM_RANGE(0x5c, 0x5c) AM_READ(pc8801_vram_select_r) |
| 1575 | 1595 | AM_RANGE(0x5c, 0x5f) AM_WRITE(pc8801_vram_select_w) |
| 1576 | | AM_RANGE(0x60, 0x67) AM_WRITE(pc8801_dmac_w) |
| 1577 | | AM_RANGE(0x68, 0x68) AM_WRITE(pc8801_dmac_mode_w) |
| 1596 | AM_RANGE(0x60, 0x67) AM_READWRITE(pc8801_dmac_r,pc8801_dmac_w) |
| 1597 | AM_RANGE(0x68, 0x68) AM_READWRITE(pc8801_dmac_status_r,pc8801_dmac_mode_w) |
| 1578 | 1598 | AM_RANGE(0x6e, 0x6e) AM_READ(pc8801_cpuclock_r) |
| 1579 | 1599 | AM_RANGE(0x6f, 0x6f) AM_READWRITE(pc8801_baudrate_r,pc8801_baudrate_w) |
| 1580 | 1600 | AM_RANGE(0x70, 0x70) AM_READWRITE(pc8801_window_bank_r, pc8801_window_bank_w) |
| r15781 | r15782 | |
| 2448 | 2468 | |
| 2449 | 2469 | /* video hardware */ |
| 2450 | 2470 | MCFG_SCREEN_ADD("screen", RASTER) |
| 2451 | | MCFG_SCREEN_REFRESH_RATE(60) |
| 2452 | | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 2453 | | MCFG_SCREEN_SIZE(640, 480) |
| 2454 | | MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) |
| 2471 | MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK_15KHz,896,0,640,256,0,200) |
| 2455 | 2472 | MCFG_SCREEN_UPDATE_STATIC(pc8801) |
| 2456 | 2473 | |
| 2457 | 2474 | MCFG_GFXDECODE( pc8801 ) |