Previous 15994 Revisions Next

r9069 Tuesday 7th September, 2010 at 16:48:50 UTC by Curt Coder
[CONKORT] Added FDC DDEN, MR, and partial INTRQ handling.
[src/mess/machine]conkort.c

src/mess/machine/conkort.c
r9068r9069
6565PCB Layout
6666----------
6767
6855 21046-03
6855 11046-03
6969
7070|-----------------------------------|
7171|   LD1 SW1             CON2        |
7272|                                   |
73|                       CON3    S9  |
74|                               S8  |
73|                       CON3    S8  |
74|                               S9  |
7575|   LS240   LS174   7406    7406    |
7676|                                   |
7777|   LS174   FDC9229 LS107   LS266   |
r9068r9069
176176
177177    Fast Controller
178178    ---------------
179   - drive select
180   - side select
181   - motor on
182   - Z80 NMI
183   - FDC INTRQ
179184    - CPU is in HALT waiting for the FDC interrupt after commands
180185
181186*/
r9068r9069
200205#define Z80PIO_TAG   "3a"
201206#define FD1791_TAG   "7a"
202207
203#define Z80DMA_TAG   "z80dma"
204#define SAB1793_TAG   "sab1793"
208//#define Z80_TAG   "5ab"
209#define Z80DMA_TAG   "6ab"
210#define SAB1793_TAG   "7ab"
211#define FDC9229_TAG   "8b"
205212
206213/***************************************************************************
207214    TYPE DEFINITIONS
r9068r9069
555562   conkort->status = data;
556563}
557564
565static WRITE8_DEVICE_HANDLER( fast_fdc_ctrl_w )
566{
567   /*
568
569      bit      description
570
571      0      FD1793 _MR
572      1      FD1793 _DDEN, FDC9229 DENS
573      2      FDC9229 MINI
574      3      ?
575      4      FDC9229 P2
576      5      FDC9229 P1
577      6
578      7
579
580      FDC9229 P0 is grounded
581
582   */
583
584   /* master reset */
585   wd17xx_mr_w(device, BIT(data, 0));
586
587   /* density select */
588   wd17xx_dden_w(device, BIT(data, 1));
589
590   logerror("0x30 %02x\n", data);
591}
592
593static WRITE8_DEVICE_HANDLER( fast_other_w )
594{
595   /*
596
597      bit      description
598
599      0     
600      1     
601      2     
602      3     
603      4     
604      5     
605      6
606      7
607
608      this has to be drive/side select
609
610   */
611   logerror("0x40 %02x\n", data);
612}
613
558614/* Memory Maps */
559615
560616// Slow Controller
r9068r9069
585641   AM_RANGE(0x00, 0x00) AM_MIRROR(0x0f) AM_DEVREAD(SAB1793_TAG, fast_data_r)
586642   AM_RANGE(0x10, 0x10) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_data_w)
587643   AM_RANGE(0x20, 0x20) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_status_w)
588//  AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_DEVWRITE()
589//  AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_DEVWRITE()
644   AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_fdc_ctrl_w)
645   AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_other_w)
590646   AM_RANGE(0x50, 0x50) AM_MIRROR(0x0f) AM_READ_PORT("SW1")
591647   AM_RANGE(0x60, 0x63) AM_MIRROR(0x0c) AM_DEVREAD(SAB1793_TAG, wd17xx_r)
592648   AM_RANGE(0x70, 0x73) AM_MIRROR(0x0c) AM_DEVWRITE(SAB1793_TAG, wd17xx_w)
r9068r9069
857913
858914/* FD1793 */
859915
916static WRITE_LINE_DEVICE_HANDLER( fast_fd1793_intrq_w )
917{
918   fast_t *conkort = get_safe_token_fast(device->owner());
919
920   //if (INTRQ enabled)
921   {
922      cpu_set_input_line(conkort->cpu, INPUT_LINE_NMI, state);
923   }
924}
925
860926static const wd17xx_interface fast_wd17xx_interface =
861927{
862928   DEVCB_NULL,
863   DEVCB_NULL, // TODO connect me!
929   DEVCB_LINE(fast_fd1793_intrq_w),
864930   DEVCB_DEVICE_LINE(Z80DMA_TAG, z80dma_rdy_w),
865931   { FLOPPY_0, FLOPPY_1, NULL, NULL }
866932};
r9068r9069
872938   DEVCB_NULL,
873939   DEVCB_NULL,
874940   DEVCB_NULL,
875   FLOPPY_STANDARD_5_25_DSHD,
941   FLOPPY_STANDARD_5_25_DSHD, // FIXME
876942   FLOPPY_OPTIONS_NAME(abc80),
877943   NULL
878944};
r9068r9069
922988
923989ROM_START( luxor_55_21046 )
924990   ROM_REGION( 0x10000, "conkort", ROMREGION_LOADBYNAME )
925   ROM_LOAD( "fast108.bin",   0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
926   ROM_LOAD( "fast207.bin",   0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
927   ROM_LOAD( "6490318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
991   ROM_LOAD( "fast108.6cd", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
992   ROM_LOAD( "fast207.6cd", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
993   ROM_LOAD( "cntr 1.07 6490318-07.6cd", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
928994ROM_END
929995
930996ROM_START( myab_turbo_kontroller )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team