Previous 15994 Revisions Next

r15783 Monday 6th August, 2012 at 19:48:46 UTC by Angelo Salese
PC-8801: Fixed (hard) crash in Castle Excellent when in 15 KHz mode, and made sound irq to trigger always instead of level >= 5
[src/mess/drivers]pc8801.c

src/mess/drivers/pc8801.c
r15782r15783
2424   - YMF288 support;
2525
2626    per-game specific TODO:
27    - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon;
2827    - 100yen Soft 8 Revival Special: tight loop with vblank bit, but vblank irq takes too much time to execute its code;
2928    - 177: gameplay is too fast (parent pc8801 only);
3029    - 1942: missing sound, enables a masked irq;
3130    - Acro Jet: hangs waiting for an irq (floppy issue);
3231    - Advanced Fantasian: wants an irq that can't happen (I is equal to 0x3f)
3332    - American Success: reads the light pen?
34    - Alpha (demo): stuck note in title screen, doesn't seem to go further;
3533    - Arion: random hang, FDC CPU communication issue?
3634    - Balance of Power: uses the SIO port for mouse polling;
3735    - Bishoujo Baseball Gakuen: checks ym2608 after intro screen;
r15782r15783
3937    - Brunette: No sound, eventually hangs at gameplay;
4038    - Can Can Bunny: bitmap artifacts on intro, could be either ALU or floppy issues;
4139    - Carrot: gfxs are messed up
42   - Castle Excellent: hard-crashes my OS if attempts it to boot in 15 KHz Monitor Mode (???)
4340    - Combat: mono gfx mode enabled, but I don't see any noticeable quirk?
4441    - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?)
4542    - Grobda: palette is ugly (parent pc8801 only);
r15782r15783
5754    - Arcus
5855    - Arcus (demo) (After Wolf Team logo)
5956    - Arcus 2 (at PCM loading)
57    - Attacker
58    - Autumn Park (BASIC error)
6059    - Bokosuka Wars (polls read ID command)
6160    - Bruce Lee (fdccpu reads port C in a weird fashion)
6261    - Castle Excellent (sets sector 0xf4?)
r15782r15783
7069    - The Return of Ishtar
7170    - Tobira wo Akete (random crashes in parent pc8801 only)
7271
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
7378    games that needs to NOT have write-protect floppies (BTANBs):
7479    - 100 Yen Disk 7: (doesn't boot in V2 mode)
7580    - Balance of Power
r15782r15783
7782    - Tobira wo Akete (hangs at title screen)
7883
7984   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;
8187
8288    Notes:
8389    - BIOS disk ROM defines what kind of floppies you could load:
r15782r15783
434440   }
435441}
436442
437static void draw_bitmap_1bpp(running_machine &machine, bitmap_ind16 &bitmap)
443static void draw_bitmap_1bpp(running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect)
438444{
439445   pc8801_state *state = machine.driver_data<pc8801_state>();
440446   int x,y,xi;
r15782r15783
455461            /* TODO: dunno if state->m_layer_mask is correct here */
456462            if(!(state->m_layer_mask & 2)) { pen = ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; }
457463
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];
459466         }
460467
461468         count++;
r15782r15783
478485               /* TODO: dunno if state->m_layer_mask is correct here */
479486               if(!(state->m_layer_mask & 4)) { pen = ((gvram[count+0x4000] >> (7-xi)) & 1) << 0; }
480487
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];
482490            }
483491
484492            count++;
r15782r15783
648656   UINT8 blink;
649657   int pal;
650658
651   popmessage("%02x",state->m_crtc.param[0][4]);
659//   popmessage("%02x",state->m_crtc.param[0][4]);
652660
653661   for(y=0;y<y_size;y++)
654662   {
r15782r15783
702710      if(state->m_gfx_ctrl & 0x10)
703711         draw_bitmap_3bpp(screen.machine(),bitmap,cliprect);
704712      else
705         draw_bitmap_1bpp(screen.machine(),bitmap);
713         draw_bitmap_1bpp(screen.machine(),bitmap,cliprect);
706714   }
707715
708716   //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);
r15782r15783
13541362   m_dmac_mode = data;
13551363   m_dmac_ff = 0;
13561364
1357   if(data != 0xe4 && data != 0xa0)
1365   if(data != 0xe4 && data != 0xa0 && data != 0xc4 && data != 0x80)
13581366      printf("%02x DMAC mode\n",data);
13591367}
13601368
r15782r15783
21882196   pc8801_state *state = device->machine().driver_data<pc8801_state>();
21892197
21902198//   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)
21922201   {
21932202      state->m_sound_irq_latch = 1;
21942203      IRQ_LOG(("sound\n"));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team