Previous 15994 Revisions Next

r15782 Monday 6th August, 2012 at 18:45:13 UTC by Angelo Salese
Various extra logging
[src/mess/drivers]pc8801.c

src/mess/drivers/pc8801.c
r15781r15782
3333    - American Success: reads the light pen?
3434    - Alpha (demo): stuck note in title screen, doesn't seem to go further;
3535    - Arion: random hang, FDC CPU communication issue?
36    - Art of War: spurious sound irq;
3736    - Balance of Power: uses the SIO port for mouse polling;
3837    - Bishoujo Baseball Gakuen: checks ym2608 after intro screen;
3938    - The Black Onyx: writes a katakana msg: "rino kata ha koko ni orimasen" then doesn't show up anything. (Needs user disk?)
4039    - Brunette: No sound, eventually hangs at gameplay;
4140    - Can Can Bunny: bitmap artifacts on intro, could be either ALU or floppy issues;
4241    - Carrot: gfxs are messed up
42   - Castle Excellent: hard-crashes my OS if attempts it to boot in 15 KHz Monitor Mode (???)
4343    - Combat: mono gfx mode enabled, but I don't see any noticeable quirk?
4444    - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?)
4545    - Grobda: palette is ugly (parent pc8801 only);
r15781r15782
5959    - Arcus 2 (at PCM loading)
6060    - Bokosuka Wars (polls read ID command)
6161    - Bruce Lee (fdccpu reads port C in a weird fashion)
62    - Burning Point (trips a spurious irq)
6362    - Castle Excellent (sets sector 0xf4?)
6463    - Card Game Pro 8.8k Plus Unit 1 (prints Disk i/o error 135 in vram, not visible for whatever reason)
6564    - Cuby Panic (copy protection routine at 0x911A)
r15781r15782
302301   DECLARE_WRITE8_MEMBER(pc88_crtc_param_w);
303302   DECLARE_READ8_MEMBER(pc8801_crtc_status_r);
304303   DECLARE_WRITE8_MEMBER(pc88_crtc_cmd_w);
304   DECLARE_READ8_MEMBER(pc8801_dmac_r);
305305   DECLARE_WRITE8_MEMBER(pc8801_dmac_w);
306   DECLARE_READ8_MEMBER(pc8801_dmac_status_r);
306307   DECLARE_WRITE8_MEMBER(pc8801_dmac_mode_w);
307308   DECLARE_READ8_MEMBER(pc8801_extram_mode_r);
308309   DECLARE_WRITE8_MEMBER(pc8801_extram_mode_w);
r15781r15782
647648   UINT8 blink;
648649   int pal;
649650
651   popmessage("%02x",state->m_crtc.param[0][4]);
652
650653   for(y=0;y<y_size;y++)
651654   {
652655      for(x=0;x<80;x++)
r15781r15782
692695   pc8801_state *state = screen.machine().driver_data<pc8801_state>();
693696   bitmap.fill(screen.machine().pens[0], cliprect);
694697
698//   popmessage("%04x %04x %02x",state->m_dma_address[2],state->m_dma_counter[2],state->m_dmac_mode);
699
695700   if(state->m_gfx_ctrl & 8)
696701   {
697702      if(state->m_gfx_ctrl & 0x10)
r15781r15782
13221327   //  printf("CRTC cmd %s polled\n",crtc_command[data >> 5]);
13231328}
13241329
1330READ8_MEMBER(pc8801_state::pc8801_dmac_r)
1331{
1332   printf("DMAC R %08x\n",offset);
1333   return 0xff;
1334}
1335
13251336WRITE8_MEMBER(pc8801_state::pc8801_dmac_w)
13261337{
1327
13281338   if(offset & 1)
13291339      m_dma_counter[offset >> 1] = (m_dmac_ff) ? (m_dma_counter[offset >> 1]&0xff)|(data<<8) : (m_dma_counter[offset >> 1]&0xff00)|(data&0xff);
13301340   else
r15781r15782
13331343   m_dmac_ff ^= 1;
13341344}
13351345
1346READ8_MEMBER(pc8801_state::pc8801_dmac_status_r)
1347{
1348   printf("DMAC R STATUS\n");
1349   return 0xff;
1350}
1351
13361352WRITE8_MEMBER(pc8801_state::pc8801_dmac_mode_w)
13371353{
13381354   m_dmac_mode = data;
1355   m_dmac_ff = 0;
1356
1357   if(data != 0xe4 && data != 0xa0)
1358      printf("%02x DMAC mode\n",data);
13391359}
13401360
13411361READ8_MEMBER(pc8801_state::pc8801_extram_mode_r)
r15781r15782
15731593   AM_RANGE(0x54, 0x5b) AM_WRITE(pc8801_palram_w)
15741594   AM_RANGE(0x5c, 0x5c) AM_READ(pc8801_vram_select_r)
15751595   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)
15781598   AM_RANGE(0x6e, 0x6e) AM_READ(pc8801_cpuclock_r)
15791599   AM_RANGE(0x6f, 0x6f) AM_READWRITE(pc8801_baudrate_r,pc8801_baudrate_w)
15801600   AM_RANGE(0x70, 0x70) AM_READWRITE(pc8801_window_bank_r, pc8801_window_bank_w)
r15781r15782
24482468
24492469   /* video hardware */
24502470   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)
24552472   MCFG_SCREEN_UPDATE_STATIC(pc8801)
24562473
24572474   MCFG_GFXDECODE( pc8801 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team