Previous 15994 Revisions Next

r10053 Saturday 15th January, 2011 at 19:44:46 UTC by Angelo Salese
[PC-8801]: logging, will be needed for the upcoming change
[src/mess/drivers]pc8801.c

src/mess/drivers/pc8801.c
r10052r10053
481481   layer_mask = data;
482482}
483483
484static READ8_HANDLER( pc8801_crtc_param_r )
485{
486   return 0xff;
487}
488
489static WRITE8_HANDLER( pc88_crtc_param_w )
490{
491}
492
493static READ8_HANDLER( pc8801_crtc_status_r )
494{
495   return 0xff;
496}
497
498/*
499  CRTC_RESET      = 0,
500  CRTC_STOP_DISPLAY   = 0,
501  CRTC_START_DISPLAY,
502  CRTC_SET_INTERRUPT_MASK,
503  CRTC_READ_LIGHT_PEN,
504  CRTC_LOAD_CURSOR_POSITION,
505  CRTC_RESET_INTERRUPT,
506  CRTC_RESET_COUNTERS,
507  CRTC_READ_STATUS,
508*/
509
510static const char *const crtc_command[] =
511{
512   "Reset / Stop Display",            // 0
513   "Start Display",                // 1
514   "Set IRQ MASK",                  // 2
515   "Read Light Pen",               // 3
516   "Load Cursor Position",            // 4
517   "Reset IRQ",                  // 5
518   "Reset Counters",               // 6
519   "Read Status"                  // 7
520};
521
522static WRITE8_HANDLER( pc88_crtc_cmd_w )
523{
524   if((data >> 5) != 4)
525      printf("CRTC cmd %s polled\n",crtc_command[data >> 5]);
526
527}
528
484529static ADDRESS_MAP_START( pc8801_io, ADDRESS_SPACE_IO, 8 )
485530   ADDRESS_MAP_GLOBAL_MASK(0xff)
486531   ADDRESS_MAP_UNMAP_HIGH
r10052r10053
509554   AM_RANGE(0x40, 0x40) AM_READ(pc8801_ctrl_r) //, pc88sr_outport_40)
510555   AM_RANGE(0x44, 0x45) AM_DEVREADWRITE("ym2203", ym2203_r,ym2203_w)
511556//  AM_RANGE(0x46, 0x47) AM_NOP                                     /* OPNA extra port */
512//   AM_RANGE(0x50, 0x51) AM_READWRITE(pc88_crtc_r, pc88_crtc_w)
557   AM_RANGE(0x50, 0x50) AM_READWRITE(pc8801_crtc_param_r, pc88_crtc_param_w)
558   AM_RANGE(0x51, 0x51) AM_READWRITE(pc8801_crtc_status_r, pc88_crtc_cmd_w)
513559//   AM_RANGE(0x52, 0x52) //background palette
514560   AM_RANGE(0x53, 0x53) AM_WRITE(pc8801_layer_masking_w)
515561   AM_RANGE(0x54, 0x5b) AM_WRITE(pc8801_palram_w)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team