Previous 199869 Revisions Next

r18409 Wednesday 10th October, 2012 at 13:39:09 UTC by smf
(MESS) Stops driving the SCSI bus when the target requests the bus. Move the SCSIHD first as it's unclear what drive was actually supplied. Set to use 3.5" floppy drive instead of 5.25". A couple of source tidy ups (nw)
[src/mess/drivers]rmnimbus.c
[src/mess/includes]rmnimbus.h
[src/mess/machine]rmnimbus.c

trunk/src/mess/machine/rmnimbus.c
r18408r18409
4141STAMP.EXE and then formatted in the normal way for a dos system drive with
4242Format /s.
4343
44The tracks, heads and sectors/track can be used with chdman -createblank
44The tracks, heads and sectors/track can be used with chdman createhd
4545to create a blank hard disk which can then be formatted with the RM tools.
4646The important thing when doing this is to make sure that if using the Native
4747SCSI tools, that the disk has the  same number of blocks as specified above,
4848even if you have to use unusual geometry to do so !
49
50for example:
51
52chdman createhd -o ST125N.chd -chs 407,4,26 -ss 512
53
4954*/
5055
5156
r18408r18409
24982503   else
24992504      set_disk_int(machine(),0);
25002505
2501   if( mask == HDC_REQ_MASK )
2506   switch( mask )
25022507   {
2508   case HDC_REQ_MASK:
25032509      if (state==0)
25042510      {
25052511         if(((m_nimbus_drives.reg410_in & HDC_CD_MASK)==HDC_CD_MASK) && (last!=0))
r18408r18409
25122518      {
25132519         m_scsibus->scsi_ack_w(1);
25142520      }
2521      break;
2522
2523   case HDC_IO_MASK:
2524      if (state==0)
2525      {
2526         printf( "switch to input mode\n" );
2527         m_scsibus->scsi_data_w(0xff);
2528      }
2529      break;
25152530   }
25162531}
25172532
trunk/src/mess/includes/rmnimbus.h
r18408r18409
288288#define FDC_MOTOR_MASKI 0x04
289289#define HDC_MSG_MASK    0x08
290290#define HDC_BSY_MASK    0x10
291#define HDC_IO_MASK     0X20
291#define HDC_IO_MASK     0x20
292292#define HDC_CD_MASK     0x40
293293#define HDC_REQ_MASK    0x80
294294
trunk/src/mess/drivers/rmnimbus.c
r18408r18409
2828const unsigned char nimbus_palette[SCREEN_NO_COLOURS][3] =
2929{
3030   /*normal brightness */
31   { 0x00,0x00,0x00 },     /* black */
31   { 0x00,0x00,0x00 },      /* black */
3232   { 0x00,0x00,0x80 },      /* blue */
3333   { 0x80,0x00,0x00 },      /* red */
3434   { 0x80,0x00,0x80 },      /* magenta */
r18408r18409
5555   DEVCB_NULL,
5656   DEVCB_NULL,
5757   DEVCB_NULL,
58   FLOPPY_STANDARD_5_25_DSSD_35,
58   FLOPPY_STANDARD_3_5_DSDD,
5959   LEGACY_FLOPPY_OPTIONS_NAME(pc),
6060   NULL,
6161   NULL
r18408r18409
308308   MCFG_CPU_PROGRAM_MAP(nimbus_iocpu_mem)
309309   MCFG_CPU_IO_MAP(nimbus_iocpu_io)
310310
311
312
313311   /* video hardware */
314312   MCFG_SCREEN_ADD("screen", RASTER)
315313   MCFG_SCREEN_REFRESH_RATE(50)
r18408r18409
324322   MCFG_SCREEN_SIZE(650, 260)
325323   MCFG_SCREEN_VISIBLE_AREA(0, 639, 0, 249)
326324
327
328
329325   /* Backing storage */
330326   MCFG_WD2793_ADD(FDC_TAG, nimbus_wd17xx_interface )
331327   MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(nimbus_floppy_interface)
332328
333329   MCFG_SCSIBUS_ADD(SCSIBUS_TAG)
334   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk0", ACB4070, SCSI_ID_0)
335   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk1", S1410, SCSI_ID_1)
336   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk2", SCSIHD, SCSI_ID_2)
337   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk3", SCSIHD, SCSI_ID_3)
330   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk0", SCSIHD, SCSI_ID_0)
331   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk1", SCSIHD, SCSI_ID_1)
332   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk2", ACB4070, SCSI_ID_2)
333   MCFG_SCSIDEV_ADD(SCSIBUS_TAG ":harddisk3", S1410, SCSI_ID_3)
338334   MCFG_SCSICB_ADD(SCSIBUS_TAG ":host", scsibus_config)
339335
340336   MCFG_RAM_ADD(RAM_TAG)
r18408r18409
358354   MCFG_SOUND_ADD(MSM5205_TAG, MSM5205, 384000)
359355   MCFG_SOUND_CONFIG(msm5205_config)
360356   MCFG_SOUND_ROUTE(ALL_OUTPUTS, MONO_TAG, 0.75)
361
362
363357MACHINE_CONFIG_END
364358
365359
r18408r18409
382376   ROM_LOAD("hexec-v1.02u-13488-1985-10-29.rom", 0x0000, 0x1000, CRC(75c6adfd) SHA1(0f11e0b7386c6368d20e1fc7a6196d670f924825))
383377ROM_END
384378
385
386379/*    YEAR  NAME        PARENT  COMPAT  MACHINE INPUT   INIT  COMPANY  FULLNAME   FLAGS */
387380COMP( 1986, nimbus,     0,      0,      nimbus, nimbus, driver_device, 0,   "Research Machines", "Nimbus", 0)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team