src/mess/drivers/pc8801.c
| r15782 | r15783 | |
| 24 | 24 | - YMF288 support; |
| 25 | 25 | |
| 26 | 26 | per-game specific TODO: |
| 27 | | - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon; |
| 28 | 27 | - 100yen Soft 8 Revival Special: tight loop with vblank bit, but vblank irq takes too much time to execute its code; |
| 29 | 28 | - 177: gameplay is too fast (parent pc8801 only); |
| 30 | 29 | - 1942: missing sound, enables a masked irq; |
| 31 | 30 | - Acro Jet: hangs waiting for an irq (floppy issue); |
| 32 | 31 | - Advanced Fantasian: wants an irq that can't happen (I is equal to 0x3f) |
| 33 | 32 | - American Success: reads the light pen? |
| 34 | | - Alpha (demo): stuck note in title screen, doesn't seem to go further; |
| 35 | 33 | - Arion: random hang, FDC CPU communication issue? |
| 36 | 34 | - Balance of Power: uses the SIO port for mouse polling; |
| 37 | 35 | - Bishoujo Baseball Gakuen: checks ym2608 after intro screen; |
| r15782 | r15783 | |
| 39 | 37 | - Brunette: No sound, eventually hangs at gameplay; |
| 40 | 38 | - Can Can Bunny: bitmap artifacts on intro, could be either ALU or floppy issues; |
| 41 | 39 | - Carrot: gfxs are messed up |
| 42 | | - Castle Excellent: hard-crashes my OS if attempts it to boot in 15 KHz Monitor Mode (???) |
| 43 | 40 | - Combat: mono gfx mode enabled, but I don't see any noticeable quirk? |
| 44 | 41 | - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?) |
| 45 | 42 | - Grobda: palette is ugly (parent pc8801 only); |
| r15782 | r15783 | |
| 57 | 54 | - Arcus |
| 58 | 55 | - Arcus (demo) (After Wolf Team logo) |
| 59 | 56 | - Arcus 2 (at PCM loading) |
| 57 | - Attacker |
| 58 | - Autumn Park (BASIC error) |
| 60 | 59 | - Bokosuka Wars (polls read ID command) |
| 61 | 60 | - Bruce Lee (fdccpu reads port C in a weird fashion) |
| 62 | 61 | - Castle Excellent (sets sector 0xf4?) |
| r15782 | r15783 | |
| 70 | 69 | - The Return of Ishtar |
| 71 | 70 | - Tobira wo Akete (random crashes in parent pc8801 only) |
| 72 | 71 | |
| 72 | list of games that doesn't like i8214_irq_level == 5 in sound irq |
| 73 | - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon; |
| 74 | - Alpha (demo): stuck note in title screen, doesn't seem to go further; |
| 75 | - Ayumi: black screen after new game / load game screen; |
| 76 | |
| 77 | |
| 73 | 78 | games that needs to NOT have write-protect floppies (BTANBs): |
| 74 | 79 | - 100 Yen Disk 7: (doesn't boot in V2 mode) |
| 75 | 80 | - Balance of Power |
| r15782 | r15783 | |
| 77 | 82 | - Tobira wo Akete (hangs at title screen) |
| 78 | 83 | |
| 79 | 84 | other BTANBs |
| 80 | | - Kuronekosou Souzoku Satsujin Jiken ("Illegal function call in 105" <- needs BASIC V1) |
| 85 | - Attack Hirokochan: returns to BASIC after an initial animation, needs BASIC V1: |
| 86 | - Kuronekosou Souzoku Satsujin Jiken: "Illegal function call in 105", needs BASIC V1; |
| 81 | 87 | |
| 82 | 88 | Notes: |
| 83 | 89 | - BIOS disk ROM defines what kind of floppies you could load: |
| r15782 | r15783 | |
| 434 | 440 | } |
| 435 | 441 | } |
| 436 | 442 | |
| 437 | | static void draw_bitmap_1bpp(running_machine &machine, bitmap_ind16 &bitmap) |
| 443 | static void draw_bitmap_1bpp(running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect) |
| 438 | 444 | { |
| 439 | 445 | pc8801_state *state = machine.driver_data<pc8801_state>(); |
| 440 | 446 | int x,y,xi; |
| r15782 | r15783 | |
| 455 | 461 | /* TODO: dunno if state->m_layer_mask is correct here */ |
| 456 | 462 | if(!(state->m_layer_mask & 2)) { pen = ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; } |
| 457 | 463 | |
| 458 | | bitmap.pix16(y, x+xi) = machine.pens[pen ? 7 : 0]; |
| 464 | if(cliprect.contains(x+xi, y)) |
| 465 | bitmap.pix16(y, x+xi) = machine.pens[pen ? 7 : 0]; |
| 459 | 466 | } |
| 460 | 467 | |
| 461 | 468 | count++; |
| r15782 | r15783 | |
| 478 | 485 | /* TODO: dunno if state->m_layer_mask is correct here */ |
| 479 | 486 | if(!(state->m_layer_mask & 4)) { pen = ((gvram[count+0x4000] >> (7-xi)) & 1) << 0; } |
| 480 | 487 | |
| 481 | | bitmap.pix16(y, x+xi) = machine.pens[pen ? 7 : 0]; |
| 488 | if(cliprect.contains(x+xi, y)) |
| 489 | bitmap.pix16(y, x+xi) = machine.pens[pen ? 7 : 0]; |
| 482 | 490 | } |
| 483 | 491 | |
| 484 | 492 | count++; |
| r15782 | r15783 | |
| 648 | 656 | UINT8 blink; |
| 649 | 657 | int pal; |
| 650 | 658 | |
| 651 | | popmessage("%02x",state->m_crtc.param[0][4]); |
| 659 | // popmessage("%02x",state->m_crtc.param[0][4]); |
| 652 | 660 | |
| 653 | 661 | for(y=0;y<y_size;y++) |
| 654 | 662 | { |
| r15782 | r15783 | |
| 702 | 710 | if(state->m_gfx_ctrl & 0x10) |
| 703 | 711 | draw_bitmap_3bpp(screen.machine(),bitmap,cliprect); |
| 704 | 712 | else |
| 705 | | draw_bitmap_1bpp(screen.machine(),bitmap); |
| 713 | draw_bitmap_1bpp(screen.machine(),bitmap,cliprect); |
| 706 | 714 | } |
| 707 | 715 | |
| 708 | 716 | //popmessage("%02x %02x %02x %02x %02x",state->m_layer_mask,state->m_dmac_mode,state->m_crtc.status,state->m_crtc.irq_mask,state->m_gfx_ctrl); |
| r15782 | r15783 | |
| 1354 | 1362 | m_dmac_mode = data; |
| 1355 | 1363 | m_dmac_ff = 0; |
| 1356 | 1364 | |
| 1357 | | if(data != 0xe4 && data != 0xa0) |
| 1365 | if(data != 0xe4 && data != 0xa0 && data != 0xc4 && data != 0x80) |
| 1358 | 1366 | printf("%02x DMAC mode\n",data); |
| 1359 | 1367 | } |
| 1360 | 1368 | |
| r15782 | r15783 | |
| 2188 | 2196 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 2189 | 2197 | |
| 2190 | 2198 | // printf("%02x %02x %02x\n",state->m_sound_irq_mask,state->m_i8214_irq_level,irq); |
| 2191 | | if(state->m_sound_irq_mask && state->m_i8214_irq_level >= 5 && irq) |
| 2199 | /* TODO: correct i8214 irq level? */ |
| 2200 | if(state->m_sound_irq_mask && irq) |
| 2192 | 2201 | { |
| 2193 | 2202 | state->m_sound_irq_latch = 1; |
| 2194 | 2203 | IRQ_LOG(("sound\n")); |