Previous 15994 Revisions Next

r1996 Sunday 16th March, 2008 at 12:43:01 UTC by Robbbert
[EXIDY] Did a code cleanup in preparation for planned work.
[src/mess/drivers]exidy.c

src/mess/drivers/exidy.c
r1995r1996
7979
8080    The driver "exidyd" emulates the most common form, a cassette-based system with 48k of ram.
8181
82    - Robert
8382
8483********************************************************************************/
8584#include "driver.h"
r1995r1996
9089#include "machine/wd17xx.h"
9190#include "devices/basicdsk.h"
9291#include "devices/cassette.h"
92#include "devices/snapquik.h"
9393#include "devices/cartslot.h"
9494#include "devices/printer.h"
9595#include "devices/z80bin.h"
r1995r1996
109109}
110110
111111
112//static unsigned char exidy_fc;
113//static unsigned char exidy_fd;
114112static unsigned char exidy_fe;
115//static unsigned char exidy_ff;
116
117//static int exidy_parallel_control;
118113static int exidy_keyboard_line;
119114static unsigned long exidy_hd6402_state;
120115
r1995r1996
253248   cassette_serial_connection.input_state = state;
254249}
255250
256static MACHINE_START( exidy )
251static MACHINE_START( exidyd )
257252{
258253   serial_timer = timer_alloc(exidy_serial_timer_callback, NULL);
259254   cassette_timer = timer_alloc(exidy_cassette_timer_callback, NULL);
260
261   wd17xx_init(machine, WD_TYPE_179X, NULL, NULL);
262255}
263256
264static MACHINE_RESET( exidy )
257static MACHINE_START( exidy )
265258{
266   hd6402_init();
267   hd6402_set_callback(exidy_hd6402_callback);
268   hd6402_reset();
269
270   centronics_config(0, exidy_cent_config);
271   /* assumption: select is tied low */
272   centronics_write_handshake(0, CENTRONICS_SELECT | CENTRONICS_NO_RESET, CENTRONICS_SELECT| CENTRONICS_NO_RESET);
273
274   serial_connection_init(&cassette_serial_connection);
275   serial_connection_set_in_callback(&cassette_serial_connection, cassette_serial_in);
276
277   exidy_fe_port_w(machine, 0, 0);
278
279   timer_set(attotime_zero, NULL, 0, exidy_reset_timer_callback);
280
281   floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 0), FLOPPY_DRIVE_DS_80);
282
283   /* this is temporary. Normally when a Z80 is reset, it will
284    execute address 0. The exidy starts executing from 0x0e000 */
285//  memory_set_opbase_handler(0, exidy_opbaseoverride);
286
287//  cpunum_write_byte(0,0,0x0c3);
288//  cpunum_write_byte(0,1,0x000);
289//  cpunum_write_byte(0,2,0x0e0);
290
259   MACHINE_START_CALL( exidyd );
260   wd17xx_init(machine, WD_TYPE_179X, NULL, NULL);
291261}
292262
293263static MACHINE_RESET( exidyd )
r1995r1996
306276   exidy_fe_port_w(machine, 0, 0);
307277
308278   timer_set(attotime_zero, NULL, 0, exidy_reset_timer_callback);
279}
309280
281static MACHINE_RESET( exidy )
282{
283   MACHINE_RESET_CALL( exidyd );
310284   floppy_drive_set_geometry(image_from_devtype_and_index(IO_FLOPPY, 0), FLOPPY_DRIVE_DS_80);
311285}
312286
287
313288static  READ8_HANDLER ( exidy_wd179x_r )
314289{
315290   switch (offset & 0x03)
r1995r1996
323298   case 3:
324299      return wd17xx_data_r(machine, offset);
325300   default:
326      break;
301      return 0xff;
327302   }
328
329   return 0x0ff;
330303}
331304
332305static WRITE8_HANDLER ( exidy_wd179x_w )
r1995r1996
386359   logerror("exidy fd w: %04x %02x\n",offset,data);
387360
388361   /* bit 0,1: char length select */
389   if (data & (1<<0))
390   {
362   if (data & 1)
391363      hd6402_set_input(HD6402_INPUT_CLS1, HD6402_INPUT_CLS1);
392   }
393364   else
394   {
395365      hd6402_set_input(HD6402_INPUT_CLS1, 0);
396   }
397366
398   if (data & (1<<1))
399   {
367   if (data & 2)
400368      hd6402_set_input(HD6402_INPUT_CLS2, HD6402_INPUT_CLS2);
401   }
402369   else
403   {
404370      hd6402_set_input(HD6402_INPUT_CLS2, 0);
405   }
406371
407372   /* bit 2: stop bit count */
408   if (data & (1<<2))
409   {
373   if (data & 4)
410374      hd6402_set_input(HD6402_INPUT_SBS, HD6402_INPUT_SBS);
411   }
412375   else
413   {
414376      hd6402_set_input(HD6402_INPUT_SBS, 0);
415   }
416377
417378   /* bit 3: parity type select */
418   if (data & (1<<3))
419   {
379   if (data & 8)
420380      hd6402_set_input(HD6402_INPUT_EPE, HD6402_INPUT_EPE);
421   }
422381   else
423   {
424382      hd6402_set_input(HD6402_INPUT_EPE, 0);
425   }
426383
427384   /* bit 4: inhibit parity (no parity) */
428   if (data & (1<<4))
429   {
385   if (data & 16)
430386      hd6402_set_input(HD6402_INPUT_PI, HD6402_INPUT_PI);
431   }
432387   else
433   {
434388      hd6402_set_input(HD6402_INPUT_PI, 0);
435   }
436389}
437390
438391#define EXIDY_CASSETTE_MOTOR_MASK ((1<<4)|(1<<5))
r1995r1996
468421      }
469422      else
470423      {
471         /* if both motors were off previously, at least one motor
472            has been switched on */
424         /* if both motors were off previously, at least one motor has been switched on */
473425         if ((exidy_fe & EXIDY_CASSETTE_MOTOR_MASK)==0)
474426         {
475427            cassette_clock_counter = 0;
r1995r1996
484436   if (data & 0x080)
485437   {
486438      /* connect to serial device (not yet emulated) */
487      /* Notes by Robert
488        Due to bugs in the hardware and software of a real Sorcerer, the serial
489        interface misbehaves.
490        1. Sorcerer I had a hardware problem causing rs232 idle to be a space (+9v)
491        instead of mark (-9v). Fixed in Sorcerer II.
492        2. When you select a different baud for rs232, it was "remembered" but not
493        sent to port fe. It only gets sent when motor on was requested. Motor on is
494        only meaningful in a cassette operation.
495        3. The monitor software always resets the device to cassette whenever the
496        keyboard is scanned, motors altered, or an error occurred.
497        4. The above problems make rs232 communication impractical unless you write
498        your own routines or create a corrected monitor rom. */
439   /* Due to bugs in the hardware and software of a real Sorcerer, the serial
440   interface misbehaves.
441   1. Sorcerer I had a hardware problem causing rs232 idle to be a space (+9v)
442   instead of mark (-9v). Fixed in Sorcerer II.
443   2. When you select a different baud for rs232, it was "remembered" but not
444   sent to port fe. It only gets sent when motor on was requested. Motor on is
445   only meaningful in a cassette operation.
446   3. The monitor software always resets the device to cassette whenever the
447   keyboard is scanned, motors altered, or an error occurred.
448   4. The above problems make rs232 communication impractical unless you write
449   your own routines or create a corrected monitor rom. */
499450   }
500451   else
501452   {
r1995r1996
521472
522473static WRITE8_HANDLER(exidy_ff_port_w)
523474{
524   logerror("exidy ff w: %04x %02x\n",offset,data);
525   /* reading the dipswitch */
526   switch ((readinputport(0)>>1) & 0x01)
475   /* reading the config switch */
476   switch ((readinputportbytag("CONFIG")>>1) & 0x01)
527477   {
528478      case 0: /* speaker */
529      {
530         int level;
479         speaker_level_w(0, (data) ? 1 : 0);
480         break;
531481
532         level = 0; /* speaker muted */
533         if (data)
534         {
535            level = 0x0ff; /* speaker on */
536         }
537
538         speaker_level_w(0, level);
539      }
540      break;
541
542482      case 1: /* printer */
543      {
544483         /* bit 7 = strobe, bit 6..0 = data */
545484         centronics_write_handshake(0, CENTRONICS_SELECT | CENTRONICS_NO_RESET, CENTRONICS_SELECT| CENTRONICS_NO_RESET);
546485         centronics_write_handshake(0, (data>>7) & 0x01, CENTRONICS_STROBE);
547         centronics_write_data(0,data & 0x07f);
548
549      }
550      break;
486         centronics_write_data(0, data & 0x7f);
487         break;
551488   }
552
553489}
554490
555491static READ8_HANDLER(exidy_fc_port_r)
556492{
557   int data;
493   UINT8 data;
558494
559495   hd6402_set_input(HD6402_INPUT_DRR, HD6402_INPUT_DRR);
560496   data = hd6402_data_r(machine, offset);
r1995r1996
566502
567503static READ8_HANDLER(exidy_fd_port_r)
568504{
569   int data;
570505   /* set unused bits high */
571   data = 0xe0;
506   UINT8 data = 0xe0;
572507
573508   /* bit 4: parity error */
574   if (exidy_hd6402_state & HD6402_OUTPUT_PE)
575   {
576      data |= (1<<4);
577   }
509   if (exidy_hd6402_state & HD6402_OUTPUT_PE) data |= (1<<4);
578510
579511   /* bit 3: framing error */
580   if (exidy_hd6402_state & HD6402_OUTPUT_FE)
581   {
582      data |= (1<<3);
583   }
512   if (exidy_hd6402_state & HD6402_OUTPUT_FE) data |= (1<<3);
584513
585514   /* bit 2: over-run error */
586   if (exidy_hd6402_state & HD6402_OUTPUT_OE)
587   {
588      data |= (1<<2);
589   }
515   if (exidy_hd6402_state & HD6402_OUTPUT_OE) data |= (1<<2);
590516
591517   /* bit 1: data receive ready - data ready in receive reg */
592   if (exidy_hd6402_state & HD6402_OUTPUT_DR)
593   {
594      data |= (1<<1);
595   }
518   if (exidy_hd6402_state & HD6402_OUTPUT_DR) data |= (1<<1);
596519
597520   /* bit 0: transmitter buffer receive empty */
598521   /* if this BIT is forced high, then the cassette save routine does not hang */
599   if (exidy_hd6402_state & HD6402_OUTPUT_TBRE)
600   {
601      data |= (1<<0);
602   }
522   if (exidy_hd6402_state & HD6402_OUTPUT_TBRE) data |= (1<<0);
603523
604
605524   logerror("exidy fd r: %04x %02x\n",offset,data);
606525
607526   return data;
r1995r1996
614533     - not emulated
615534     - tied high, allowing PARIN and PAROUT bios routines to run */
616535
617   unsigned int data=0xc0;
536   UINT8 data=0xc0;
618537
619538   /* bit 5 - vsync (inverted) */
620   data |= (((~readinputport(0)) & 0x01)<<5);
539   data |= (((~readinputportbytag("VS")) & 0x01)<<5);
621540
622541   /* bits 4..0 - keyboard data */
623542   data |= (readinputport(exidy_keyboard_line+1) & 0x01f);
624543
625   logerror("exidy fe r: %04x %02x\n",offset,data);
626
627544   return data;
628545}
629546
630547static READ8_HANDLER(exidy_ff_port_r)
631548{
632   /* Notes added by Robert
633    The use of the parallel port as a general purpose port is not emulated.
634    Currently the only use is to read the printer status in the Centronics CENDRV bios routine.
635    This uses bit 7. The other bits have been set high (=nothing plugged in).
636    This fixes those games that use a joystick. */
549   /* The use of the parallel port as a general purpose port is not emulated.
550   Currently the only use is to read the printer status in the Centronics CENDRV bios routine.
551   This uses bit 7. The other bits have been set high (=nothing plugged in).
552   This fixes those games that use a joystick. */
637553
638554   UINT8 data=0x7f;
639555
640556   /* bit 7 = printer busy
641    0 = printer is not busy */
557   0 = printer is not busy */
642558
643559   if (printer_status(image_from_devtype_and_index(IO_PRINTER, 0), 0)==0 )
644560      data |= 0x080;
645561
646   logerror("exidy ff r: %04x %02x\n",offset,data);
647
648562   return data;
649563}
650564
r1995r1996
659573ADDRESS_MAP_END
660574
661575static INPUT_PORTS_START(exidy)
662   PORT_START
576   PORT_START_TAG("VS")
663577   /* vblank */
664578   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_VBLANK)
665   /* hardware connected to printer port */
666   PORT_DIPNAME( 0x02, 0x02, "Parallel port" )
667   PORT_DIPSETTING(    0x00, "Speaker" )
668   PORT_DIPSETTING(    0x02, "Printer" )
579
669580   /* line 0 */
670581   PORT_START
671582   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
r1995r1996
780691   PORT_BIT (0x04, 0x04, IPT_UNUSED)
781692   PORT_BIT (0x02, 0x02, IPT_UNUSED)
782693   PORT_BIT (0x01, 0x01, IPT_UNUSED)
694
695   /* Enhanced options not available on real hardware */
696   PORT_START_TAG("CONFIG")
697   PORT_CONFNAME( 0x01, 0x01, "Autorun on Quickload")
698   PORT_CONFSETTING(    0x00, DEF_STR(No))
699   PORT_CONFSETTING(    0x01, DEF_STR(Yes))
700   /* hardware connected to printer port */
701   PORT_CONFNAME( 0x02, 0x00, "Parallel port" )
702   PORT_CONFSETTING(    0x00, "Speaker" )
703   PORT_CONFSETTING(    0x02, "Printer" )
704//   PORT_CONFNAME( 0x08, 0x08, "Cassette Speaker")
705//   PORT_CONFSETTING(    0x08, DEF_STR(On))
706//   PORT_CONFSETTING(    0x00, DEF_STR(Off))
783707INPUT_PORTS_END
784708
785709/**********************************************************************************************************/
r1995r1996
789713   MDRV_CPU_ADD_TAG("main", Z80, 12638000/6)
790714   MDRV_CPU_PROGRAM_MAP(exidy_mem, 0)
791715   MDRV_CPU_IO_MAP(exidy_io, 0)
792   MDRV_SCREEN_ADD("main", RASTER)
793   MDRV_SCREEN_REFRESH_RATE(50)
794   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(200))
795   MDRV_INTERLEAVE(1)
796716
797717   MDRV_MACHINE_START( exidy )
798718   MDRV_MACHINE_RESET( exidy )
799719
800    /* video hardware */
720   /* video hardware */
721   MDRV_SCREEN_ADD("main", RASTER)
722   MDRV_SCREEN_REFRESH_RATE(50)
723   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(200))
801724   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
802725   MDRV_SCREEN_SIZE(EXIDY_SCREEN_WIDTH, EXIDY_SCREEN_HEIGHT)
803726   MDRV_SCREEN_VISIBLE_AREA(0, EXIDY_SCREEN_WIDTH-1, 0, EXIDY_SCREEN_HEIGHT-1)
r1995r1996
818741   MDRV_CPU_MODIFY("main")
819742   MDRV_CPU_PROGRAM_MAP(exidyd_mem, 0)
820743
744   MDRV_MACHINE_START( exidyd )
821745   MDRV_MACHINE_RESET( exidyd )
822746MACHINE_DRIVER_END
823747
r1995r1996
828752***************************************************************************/
829753
830754ROM_START(exidy)
831   /* these are common to all because they are inside the machine */
832   ROM_REGION(64*1024+32, REGION_CPU1,0)
755   ROM_REGION( 0x10000, REGION_CPU1, 0 )
756   ROM_LOAD("exmo1-1.dat", 0xe000, 0x0800, CRC(ac924f67) SHA1(72fcad6dd1ed5ec0527f967604401284d0e4b6a1) ) /* monitor roms */
757   ROM_LOAD("exmo1-2.dat", 0xe800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be) )
758   ROM_LOAD("exchr-1.dat", 0xf800, 0x0400, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced) ) /* char rom */
759   ROM_LOAD_OPTIONAL("diskboot.dat",0xbc00, 0x0100, BAD_DUMP CRC(d82a40d6) SHA1(cd1ef5fb0312cd1640e0853d2442d7d858bc3e3b))
760   ROM_CART_LOAD(0, "rom", 0xc000, 0x2000, ROM_NOMIRROR | ROM_OPTIONAL)
833761
834   ROM_LOAD_OPTIONAL("diskboot.dat",0x0bc00, 0x0100, BAD_DUMP CRC(d82a40d6) SHA1(cd1ef5fb0312cd1640e0853d2442d7d858bc3e3b))
762   ROM_REGION( 0x0020, REGION_PROMS, 0 )
763   ROM_LOAD_OPTIONAL("bruce.dat",   0x0000, 0x0020, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1)) /* video prom */
764ROM_END
835765
836   /* char rom */
837   ROM_LOAD("exchr-1.dat",0x0f800, 1024, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced))
766ROM_START(exidyd)
767   ROM_REGION( 0x10000, REGION_CPU1, 0 )
768   ROM_LOAD("exmo1-1.dat", 0xe000, 0x0800, CRC(ac924f67) SHA1(72fcad6dd1ed5ec0527f967604401284d0e4b6a1) ) /* monitor roms */
769   ROM_LOAD("exmo1-2.dat", 0xe800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be) )
770   ROM_LOAD("exchr-1.dat", 0xf800, 0x0400, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced) ) /* char rom */
771   ROM_CART_LOAD(0, "rom", 0xc000, 0x2000, ROM_NOMIRROR | ROM_OPTIONAL)
838772
839   /* video prom */
840   ROM_LOAD("bruce.dat", 0x010000, 32, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1))
773   ROM_REGION( 0x0020, REGION_PROMS, 0 )
774   ROM_LOAD_OPTIONAL("bruce.dat",   0x0000, 0x0020, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1)) /* video prom */
775ROM_END
841776
842   ROM_LOAD("exmo1-1.dat", 0x0e000, 0x0800, CRC(ac924f67) SHA1(72fcad6dd1ed5ec0527f967604401284d0e4b6a1))
843   ROM_LOAD("exmo1-2.dat", 0x0e800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be))
777static QUICKLOAD_LOAD( exidy )
778{
779   UINT8 sw = readinputportbytag("CONFIG") & 1;            /* reading the dipswitch: 1 = autorun */
780   UINT16 exec_addr, start_addr, end_addr;
844781
845   ROM_CART_LOAD(0, "rom", 0xc000, 0x2000, ROM_NOMIRROR | ROM_OPTIONAL)
782   if (z80bin_load_file( machine, image, file_type, &exec_addr, &start_addr, &end_addr ) == INIT_FAIL)
783      return INIT_FAIL;   /* load file */
846784
847//  ROM_LOAD_OPTIONAL("exsb1-1.dat", 0x0c000, 0x0800, CRC(1dd20d80) SHA1(dd34364ca1a35caa7255b18e6c953f6df664cc74))
848//  ROM_LOAD_OPTIONAL("exsb1-2.dat", 0x0c800, 0x0800, CRC(1068a3f8) SHA1(6395f2c9829d537d68b75a750acbf27145f1bbad))
849//  ROM_LOAD_OPTIONAL("exsb1-3.dat", 0x0d000, 0x0800, CRC(e6332518) SHA1(fe27fccc82f86b90453c4fae55371f3a050dd6dc))
850//  ROM_LOAD_OPTIONAL("exsb1-4.dat", 0x0d800, 0x0800, CRC(a370cb19) SHA1(75fffd897aec8c3dbe1a918f5a29485e603004cb))
851ROM_END
785   /* Since Exidy Basic is by Microsoft, it needs some preprocessing before it can be run.
786   1. A start address of 01D5 indicates a basic program which needs its pointers fixed up.
787   2. An exec address of C858 indicates a basic program.
788         This address is unsuitable, so the routine at F020 is used instead.
789   3. If the start address is 1D5 and the exec address is NOT C858,
790      the pointers still need fixing, but then jump to the exec address.
791   4. If autorun is turned off, the pointers still need fixing, but then display READY.
792   Important addresses:
793      01D5 = start (load) address of a conventional basic program
794      C858 = an autorun basic program will have this exec address on the tape
795      C3DD = part of basic that displays READY and lets user enter input
796      F020 = custom routine to fix basic pointers
797      F030 = exec address to jump to after fixing the pointers */
852798
853ROM_START(exidyd)
854   /* these are common to all because they are inside the machine */
855   ROM_REGION(64*1024+32, REGION_CPU1,0)
799   if ((start_addr == 0x1d5) || (exec_addr == 0xc858))
800   {
801      UINT8 i, sec[18]={
802         0x2a, 2, 0xf0,      // LD HL,(F002)   ;get saved end_addr+1
803         0x22, 0xb7, 1,      // LD (01B7),HL   ;move it to correct place
804         0xcd, 0x26, 0xc4,   // CALL C426   ;set up other pointers
805         0x21, 0xd4, 1,      // LD HL,01D4   ;dummy-start address
806         0x36, 0,      // LD (HL),00   ;make sure it is end-of-line
807         0,         // NOP      ;line up jump address to an even byte
808         0xc3, 0x89, 0xc6,};   // JP C689   ;run program - f030 = adjustable jump
856809
857   /* char rom */
858   ROM_LOAD("exchr-1.dat",0x0f800, 1024, CRC(4a7e1cdd) SHA1(2bf07a59c506b6e0c01ec721fb7b747b20f5dced))
810      for (i = 0; i < 18; i++) program_write_byte(0xf020 + i, sec[i]);
859811
860   /* video prom */
861   ROM_LOAD("bruce.dat", 0x010000, 32, CRC(fae922cb) SHA1(470a86844cfeab0d9282242e03ff1d8a1b2238d1))
812      if (!sw) program_write_word_16le(0xf030,0xc3dd);
862813
863   /* Monitor roms */
864   ROM_LOAD("exmo1-1.dat", 0x0e000, 0x0800, CRC(ac924f67) SHA1(72fcad6dd1ed5ec0527f967604401284d0e4b6a1))
865   ROM_LOAD("exmo1-2.dat", 0x0e800, 0x0800, CRC(ead1d0f6) SHA1(c68bed7344091bca135e427b4793cc7d49ca01be))
814      if (start_addr == 0x1d5)
815      {
816         program_write_word_16le(0xf002,end_addr+1);
817         if ((exec_addr != 0xc858) && (sw == 1)) program_write_word_16le(0xf030,exec_addr);
818         exec_addr=0xf020;
819      }
820      else
821         exec_addr=0xf02f;      // skip fixing pointers, just jump into bios
822     
823      sw = 1;
866824
867   /* cart */
868   ROM_CART_LOAD(0, "rom", 0xc000, 0x2000, ROM_NOMIRROR | ROM_OPTIONAL)
869ROM_END
825      if (program_read_byte(0xdffa) != 0xc3) exec_addr=0xffff;   // can't run if cart not in
826   }   
870827
828   if ((exec_addr != 0xffff) && (sw)) cpunum_set_reg(0, REG_PC, exec_addr);
829
830   return INIT_PASS;
831}
832
833static void exidy_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
834{
835   /* quickload */
836   switch(state)
837   {
838      /* --- the following bits of info are returned as NULL-terminated strings --- */
839      case MESS_DEVINFO_STR_DEV_FILE:      strcpy(info->s = device_temp_str(), __FILE__); break;
840      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
841
842      /* --- the following bits of info are returned as pointers to data or functions --- */
843      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_exidy; break;
844
845      default:            quickload_device_getinfo(devclass, state, info); break;
846   }
847}
848
871849static void exidy_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
872850{
873851   /* printer */
r1995r1996
915893   CONFIG_DEVICE(exidy_floppy_getinfo)
916894   CONFIG_DEVICE(cartslot_device_getinfo)
917895   CONFIG_DEVICE(exidy_cassette_getinfo)      // use of cassette causes a hang
918   CONFIG_DEVICE(z80bin_quickload_getinfo)
896   CONFIG_DEVICE(exidy_quickload_getinfo)
919897SYSTEM_CONFIG_END
920898
899SYSTEM_CONFIG_START(exidyd)
900   CONFIG_DEVICE(exidy_printer_getinfo)
901   CONFIG_DEVICE(cartslot_device_getinfo)
902   CONFIG_DEVICE(exidy_cassette_getinfo)      // use of cassette causes a hang
903   CONFIG_DEVICE(exidy_quickload_getinfo)
904SYSTEM_CONFIG_END
921905
922/*    YEAR  NAME    PARENT  COMPAT  MACHINE INPUT   INIT    CONFIG  COMPANY        FULLNAME */
923COMP(1979, exidy,   0,   0,   exidy,   exidy,   0,   exidy,   "Exidy Inc", "Sorcerer", GAME_NOT_WORKING )
924COMP(1979, exidyd,   exidy,   0,   exidyd,   exidy,   0,   exidy,   "Exidy Inc", "Sorcerer (diskless)", GAME_NOT_WORKING )
925906
907/*    YEAR  NAME    PARENT  COMPAT      MACHINE INPUT   INIT    CONFIG  COMPANY        FULLNAME */
908COMP(1979, exidy,   0,      0,   exidy,   exidy,   0,   exidy,   "Exidy Inc", "Sorcerer", 0 )
909COMP(1979, exidyd,  exidy,   0,   exidyd,   exidy,   0,   exidyd,   "Exidy Inc", "Sorcerer (Cassette only)", 0 )
910

Previous 15994 Revisions Next


© 1998-2018 The MESS Team