Previous 15994 Revisions Next

r3576 Wednesday 26th November, 2008 at 10:59:05 UTC by Miodrag Milanović
[BK][B2M] Enabled, also WD17xx enabled
[src/mess]mess.mak messdriv.c
[src/mess/machine]b2m.c bk.c wd17xx.c

src/mess/messdriv.c
r3575r3576
978978//128u4   DRIVER( orionpro )
979979
980980   /* BK */
981//128u4   DRIVER( bk0010 )
982//128u4   DRIVER( bk001001 )
983//128u4   DRIVER( bk0010fd )
981   DRIVER( bk0010 )
982   DRIVER( bk001001 )
983   DRIVER( bk0010fd )
984984
985985   /* Bashkiria-2M */
986//128u4   DRIVER( b2m )
987//128u4   DRIVER( b2mrom )
986   DRIVER( b2m )
987   DRIVER( b2mrom )
988988
989989   /* Radio-86RK */
990990//128u4   DRIVER( radio86 )
src/mess/machine/b2m.c
r3575r3576
4343{     
4444   UINT8 key = 0x00;
4545   if (offset < 0x100) {
46      if ((offset & 0x01)!=0) { key |= input_port_read(machine,"LINE0"); }
47      if ((offset & 0x02)!=0) { key |= input_port_read(machine,"LINE1"); }
48      if ((offset & 0x04)!=0) { key |= input_port_read(machine,"LINE2"); }
49      if ((offset & 0x08)!=0) { key |= input_port_read(machine,"LINE3"); }
50      if ((offset & 0x10)!=0) { key |= input_port_read(machine,"LINE4"); }
51      if ((offset & 0x20)!=0) { key |= input_port_read(machine,"LINE5"); }
52      if ((offset & 0x40)!=0) { key |= input_port_read(machine,"LINE6"); }
53      if ((offset & 0x80)!=0) { key |= input_port_read(machine,"LINE7"); }               
46      if ((offset & 0x01)!=0) { key |= input_port_read(space->machine,"LINE0"); }
47      if ((offset & 0x02)!=0) { key |= input_port_read(space->machine,"LINE1"); }
48      if ((offset & 0x04)!=0) { key |= input_port_read(space->machine,"LINE2"); }
49      if ((offset & 0x08)!=0) { key |= input_port_read(space->machine,"LINE3"); }
50      if ((offset & 0x10)!=0) { key |= input_port_read(space->machine,"LINE4"); }
51      if ((offset & 0x20)!=0) { key |= input_port_read(space->machine,"LINE5"); }
52      if ((offset & 0x40)!=0) { key |= input_port_read(space->machine,"LINE6"); }
53      if ((offset & 0x80)!=0) { key |= input_port_read(space->machine,"LINE7"); }               
5454   } else {
55      if ((offset & 0x01)!=0) { key |= input_port_read(machine,"LINE8"); }
56      if ((offset & 0x02)!=0) { key |= input_port_read(machine,"LINE9"); }
57      if ((offset & 0x04)!=0) { key |= input_port_read(machine,"LINE10"); }
55      if ((offset & 0x01)!=0) { key |= input_port_read(space->machine,"LINE8"); }
56      if ((offset & 0x02)!=0) { key |= input_port_read(space->machine,"LINE9"); }
57      if ((offset & 0x04)!=0) { key |= input_port_read(space->machine,"LINE10"); }
5858   }
5959   return key;
6060}
r3575r3576
6363static void b2m_set_bank(running_machine *machine,int bank)
6464{
6565   UINT8 *rom;
66   memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x27ff, 0, 0, SMH_BANK1);
67   memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_BANK2);
68   memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x6fff, 0, 0, SMH_BANK3);
69   memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x7000, 0xdfff, 0, 0, SMH_BANK4);
70   memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_BANK5);
66   const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM);
67   
68   memory_install_write8_handler(space, 0x0000, 0x27ff, 0, 0, SMH_BANK1);
69   memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_BANK2);
70   memory_install_write8_handler(space, 0x3000, 0x6fff, 0, 0, SMH_BANK3);
71   memory_install_write8_handler(space, 0x7000, 0xdfff, 0, 0, SMH_BANK4);
72   memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_BANK5);
7173
7274   rom = memory_region(machine, "main");
7375   switch(bank) {
7476      case 0 :
7577      case 1 :
76                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
78                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
7779                 
78                  memory_set_bankptr(1, mess_ram);
79                  memory_set_bankptr(2, mess_ram + 0x2800);
80                  memory_set_bankptr(3, mess_ram + 0x3000);
81                  memory_set_bankptr(4, mess_ram + 0x7000);
82                  memory_set_bankptr(5, rom + 0x10000);                 
80                  memory_set_bankptr(machine, 1, mess_ram);
81                  memory_set_bankptr(machine, 2, mess_ram + 0x2800);
82                  memory_set_bankptr(machine, 3, mess_ram + 0x3000);
83                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
84                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
8385                  break;
8486#if 0
8587      case 1 :
86                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x6fff, 0, 0, SMH_UNMAP);
87                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
88                  memory_install_write8_handler(space, 0x3000, 0x6fff, 0, 0, SMH_UNMAP);
89                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
8890
89                  memory_set_bankptr(1, mess_ram);
90                  memory_set_bankptr(2, mess_ram + 0x2800);
91                  memory_set_bankptr(3, rom + 0x12000);
92                  memory_set_bankptr(4, rom + 0x16000);
93                  memory_set_bankptr(5, rom + 0x10000);                 
91                  memory_set_bankptr(machine, 1, mess_ram);
92                  memory_set_bankptr(machine, 2, mess_ram + 0x2800);
93                  memory_set_bankptr(machine, 3, rom + 0x12000);
94                  memory_set_bankptr(machine, 4, rom + 0x16000);
95                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
9496                  break;
9597#endif
9698      case 2 :
97                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
98                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
99                  memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
100                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
99101
100                  memory_set_bankptr(1, mess_ram);
101                  memory_install_read8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
102                  memory_set_bankptr(3, mess_ram + 0x10000);
103                  memory_set_bankptr(4, mess_ram + 0x7000);
104                  memory_set_bankptr(5, rom + 0x10000);                 
102                  memory_set_bankptr(machine, 1, mess_ram);
103                  memory_install_read8_handler(space, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
104                  memory_set_bankptr(machine, 3, mess_ram + 0x10000);
105                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
106                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
105107                  break;
106108      case 3 :
107                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
108                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
109                  memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
110                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
109111
110                  memory_set_bankptr(1, mess_ram);
111                  memory_install_read8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
112                  memory_set_bankptr(3, mess_ram + 0x14000);
113                  memory_set_bankptr(4, mess_ram + 0x7000);
114                  memory_set_bankptr(5, rom + 0x10000);                 
112                  memory_set_bankptr(machine, 1, mess_ram);
113                  memory_install_read8_handler(space, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
114                  memory_set_bankptr(machine, 3, mess_ram + 0x14000);
115                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
116                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
115117                  break;
116118      case 4 :
117                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
118                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
119                  memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
120                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
119121
120                  memory_set_bankptr(1, mess_ram);
121                  memory_install_read8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
122                  memory_set_bankptr(3, mess_ram + 0x18000);
123                  memory_set_bankptr(4, mess_ram + 0x7000);
124                  memory_set_bankptr(5, rom + 0x10000);                 
122                  memory_set_bankptr(machine, 1, mess_ram);
123                  memory_install_read8_handler(space, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
124                  memory_set_bankptr(machine, 3, mess_ram + 0x18000);
125                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
126                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
125127               
126128                  break;
127129      case 5 :
128                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
129                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
130                  memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);         
131                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
130132
131                  memory_set_bankptr(1, mess_ram);
132                  memory_install_read8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
133                  memory_set_bankptr(3, mess_ram + 0x1c000);
134                  memory_set_bankptr(4, mess_ram + 0x7000);
135                  memory_set_bankptr(5, rom + 0x10000);                 
133                  memory_set_bankptr(machine, 1, mess_ram);
134                  memory_install_read8_handler(space, 0x2800, 0x2fff, 0, 0, b2m_keyboard_r);         
135                  memory_set_bankptr(machine, 3, mess_ram + 0x1c000);
136                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
137                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
136138               
137139                  break;
138140      case 6 :
139                  memory_set_bankptr(1, mess_ram);
140                  memory_set_bankptr(2, mess_ram + 0x2800);
141                  memory_set_bankptr(3, mess_ram + 0x3000);
142                  memory_set_bankptr(4, mess_ram + 0x7000);
143                  memory_set_bankptr(5, mess_ram + 0xe000);               
141                  memory_set_bankptr(machine, 1, mess_ram);
142                  memory_set_bankptr(machine, 2, mess_ram + 0x2800);
143                  memory_set_bankptr(machine, 3, mess_ram + 0x3000);
144                  memory_set_bankptr(machine, 4, mess_ram + 0x7000);
145                  memory_set_bankptr(machine, 5, mess_ram + 0xe000);               
144146                  break;
145147      case 7 :
146                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x27ff, 0, 0, SMH_UNMAP);
147                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);
148                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x6fff, 0, 0, SMH_UNMAP);
149                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0x7000, 0xdfff, 0, 0, SMH_UNMAP);
150                  memory_install_write8_handler(machine,0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
148                  memory_install_write8_handler(space, 0x0000, 0x27ff, 0, 0, SMH_UNMAP);
149                  memory_install_write8_handler(space, 0x2800, 0x2fff, 0, 0, SMH_UNMAP);
150                  memory_install_write8_handler(space, 0x3000, 0x6fff, 0, 0, SMH_UNMAP);
151                  memory_install_write8_handler(space, 0x7000, 0xdfff, 0, 0, SMH_UNMAP);
152                  memory_install_write8_handler(space, 0xe000, 0xffff, 0, 0, SMH_UNMAP);
151153                 
152                  memory_set_bankptr(1, rom + 0x10000);   
153                  memory_set_bankptr(2, rom + 0x10000);   
154                  memory_set_bankptr(3, rom + 0x10000);   
155                  memory_set_bankptr(4, rom + 0x10000);   
156                  memory_set_bankptr(5, rom + 0x10000);                 
154                  memory_set_bankptr(machine, 1, rom + 0x10000);   
155                  memory_set_bankptr(machine, 2, rom + 0x10000);   
156                  memory_set_bankptr(machine, 3, rom + 0x10000);   
157                  memory_set_bankptr(machine, 4, rom + 0x10000);   
158                  memory_set_bankptr(machine, 5, rom + 0x10000);                 
157159                  break;
158160   }
159161}
r3575r3576
308310
309311static PIC8259_SET_INT_LINE( b2m_pic_set_int_line )
310312{     
311   cpunum_set_input_line(device->machine, 0, 0,interrupt ?  HOLD_LINE : CLEAR_LINE); 
313   cpu_set_input_line(device->machine->cpu[0],0,interrupt ?  HOLD_LINE : CLEAR_LINE); 
312314}
313315static UINT8 vblank_state = 0;
314316
r3575r3576
330332   
331333   b2m_color[offset] = data;     
332334   
333   if (input_port_read(machine,"MONITOR")==1) {
334      palette_set_color_rgb(machine,offset, r, g, b);
335   if (input_port_read(space->machine,"MONITOR")==1) {
336      palette_set_color_rgb(space->machine,offset, r, g, b);
335337   } else {
336      palette_set_color_rgb(machine,offset, bw, bw, bw);
338      palette_set_color_rgb(space->machine,offset, bw, bw, bw);
337339   }
338340}
339341
r3575r3576
368370
369371static IRQ_CALLBACK(b2m_irq_callback)
370372{   
371   return pic8259_acknowledge((device_config*)device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259"));   
373   return pic8259_acknowledge((device_config*)device_list_find_by_tag( device->machine->config->devicelist, PIC8259, "pic8259"));   
372374}
373375
374376
r3575r3576
380382{   
381383   vblank_state++;
382384   if (vblank_state>1) vblank_state=0;
383   pic8259_set_irq_line((device_config*)device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259"),0,vblank_state);     
385   pic8259_set_irq_line((device_config*)device_list_find_by_tag( device->machine->config->devicelist, PIC8259, "pic8259"),0,vblank_state);     
384386}
385387
386388MACHINE_RESET(b2m)
r3575r3576
397399   wd17xx_set_side(0);
398400   wd17xx_set_drive(0);
399401
400   cpunum_set_irq_callback(0, b2m_irq_callback);
402   cpu_set_irq_callback(machine->cpu[0], b2m_irq_callback);
401403   b2m_set_bank(machine,7);
402404     
403405   pit8253_gate_w(pit8253, 0, 0);
src/mess/machine/bk.c
r3575r3576
6262         {
6363            key_irq_vector = 0xBC;
6464         }
65         cpunum_set_input_line(machine, 0, 0, ASSERT_LINE);
65         cpu_set_input_line(machine->cpu[0], 0, ASSERT_LINE);
6666         break;
6767      }
6868   }
r3575r3576
7676
7777static IRQ_CALLBACK(bk0010_irq_callback)
7878{
79   cpunum_set_input_line(machine, 0, 0, CLEAR_LINE);
79   cpu_set_input_line(device, 0, CLEAR_LINE);
8080   return key_irq_vector;
8181}
8282
8383MACHINE_RESET( bk0010 )
8484{
85   cpunum_set_irq_callback(0, bk0010_irq_callback);
85   cpu_set_irq_callback(machine->cpu[0], bk0010_irq_callback);
8686   timer_pulse(ATTOTIME_IN_HZ(2400), NULL, 0, keyboard_callback);
8787
8888   kbd_state = 0;
r3575r3576
102102}
103103
104104READ16_HANDLER (bk_key_press_r) {
105   double level = cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" ));                                               
105   double level = cassette_input(device_list_find_by_tag( space->machine->config->devicelist, CASSETTE, "cassette" ));                                               
106106   UINT16 cas;
107107   if (level < 0) {
108108       cas = 0x00;
src/mess/machine/wd17xx.c
r3575r3576
10561056   wd17xx_info *w = &wd;
10571057   int result = w->status;
10581058
1059   wd17xx_callback(machine, w, WD17XX_IRQ_CLR);
1059   wd17xx_callback(space->machine, w, WD17XX_IRQ_CLR);
10601060//   if (w->busy_count)
10611061//   {
10621062//      if (!--w->busy_count)
r3575r3576
11391139   if (w->data_count >= 1)
11401140   {
11411141      /* clear data request */
1142      wd17xx_clear_data_request(machine);
1142      wd17xx_clear_data_request(space->machine);
11431143
11441144      /* yes */
11451145      w->data = w->buffer[w->data_offset++];
r3575r3576
12141214   floppy_drive_set_motor_state(wd17xx_current_image(), 1);
12151215   floppy_drive_set_ready_state(wd17xx_current_image(), 1,0);
12161216   /* also cleared by writing command */
1217   wd17xx_callback(machine, w, WD17XX_IRQ_CLR);
1217   wd17xx_callback(space->machine, w, WD17XX_IRQ_CLR);
12181218
12191219   /* clear write protected. On read sector, read track and read dam, write protected bit is clear */
12201220   w->status &= ~((1<<6) | (1<<5) | (1<<4));
r3575r3576
12281228      w->data_offset = 0;
12291229      w->status &= ~(STA_2_BUSY);
12301230
1231      wd17xx_clear_data_request(machine);
1231      wd17xx_clear_data_request(space->machine);
12321232
12331233      if (data & 0x0f)
12341234      {
r3575r3576
12601260         w->command_type = TYPE_II;
12611261         w->status &= ~STA_2_LOST_DAT;
12621262         w->status |= STA_2_BUSY;
1263         wd17xx_clear_data_request(machine);
1263         wd17xx_clear_data_request(space->machine);
12641264
12651265         wd17xx_timed_read_sector_request();
12661266
r3575r3576
12771277         w->command_type = TYPE_II;
12781278         w->status &= ~STA_2_LOST_DAT;
12791279         w->status |= STA_2_BUSY;
1280         wd17xx_clear_data_request(machine);
1280         wd17xx_clear_data_request(space->machine);
12811281
12821282         wd17xx_timed_write_sector_request();
12831283
r3575r3576
12921292         w->command = data & ~FDC_MASK_TYPE_III;
12931293         w->command_type = TYPE_III;
12941294         w->status &= ~STA_2_LOST_DAT;
1295         wd17xx_clear_data_request(machine);
1295         wd17xx_clear_data_request(space->machine);
12961296#if 1
12971297//         w->status = seek(w, w->track, w->head, w->sector);
12981298         if (w->status == 0)
1299            read_track(machine, w);
1299            read_track(space->machine, w);
13001300#endif
13011301         return;
13021302      }
r3575r3576
13081308
13091309         w->command_type = TYPE_III;
13101310         w->status &= ~STA_2_LOST_DAT;
1311         wd17xx_clear_data_request(machine);
1311         wd17xx_clear_data_request(space->machine);
13121312
13131313         if (!floppy_drive_get_flag_state(wd17xx_current_image(), FLOPPY_DRIVE_READY))
13141314            {
r3575r3576
13301330                    w->command = data & ~FDC_MASK_TYPE_III;
13311331                    w->data_offset = 0;
13321332                    w->data_count = (w->density) ? TRKSIZE_DD : TRKSIZE_SD;
1333                    wd17xx_set_data_request(machine);
1333                    wd17xx_set_data_request(space->machine);
13341334
13351335                    w->status |= STA_2_BUSY;
13361336                    w->busy_count = 0;
r3575r3576
13461346
13471347         w->command_type = TYPE_III;
13481348         w->status &= ~STA_2_LOST_DAT;
1349           wd17xx_clear_data_request(machine);
1349           wd17xx_clear_data_request(space->machine);
13501350
13511351         if (!floppy_drive_get_flag_state(wd17xx_current_image(), FLOPPY_DRIVE_READY))
13521352            {
r3575r3576
13541354            }
13551355            else
13561356            {
1357                wd17xx_read_id(machine, w);
1357                wd17xx_read_id(space->machine, w);
13581358            }
13591359         return;
13601360      }
r3575r3576
13751375      if (VERBOSE)
13761376         logerror("wd17xx_command_w $%02X RESTORE\n", data);
13771377
1378      wd17xx_restore(machine, w);
1378      wd17xx_restore(space->machine, w);
13791379   }
13801380
13811381   if ((data & ~FDC_MASK_TYPE_I) == FDC_SEEK)
r3575r3576
15461546   if (w->data_count > 0)
15471547   {
15481548      /* clear data request */
1549      wd17xx_clear_data_request(machine);
1549      wd17xx_clear_data_request(space->machine);
15501550
15511551      /* put byte into buffer */
15521552      if (VERBOSE_DATA)
r3575r3576
15881588
15891589   switch(offset % 4) {
15901590   case 0:
1591      result = wd17xx_status_r(machine, 0);
1591      result = wd17xx_status_r(space, 0);
15921592      break;
15931593   case 1:
1594      result = wd17xx_track_r(machine, 0);
1594      result = wd17xx_track_r(space, 0);
15951595      break;
15961596   case 2:
1597      result = wd17xx_sector_r(machine, 0);
1597      result = wd17xx_sector_r(space, 0);
15981598      break;
15991599   case 3:
1600      result = wd17xx_data_r(machine, 0);
1600      result = wd17xx_data_r(space, 0);
16011601      break;
16021602   }
16031603   return result;
r3575r3576
16091609{
16101610   switch(offset % 4) {
16111611   case 0:
1612      wd17xx_command_w(machine, 0, data);
1612      wd17xx_command_w(space, 0, data);
16131613      break;
16141614   case 1:
1615      wd17xx_track_w(machine, 0, data);
1615      wd17xx_track_w(space, 0, data);
16161616      break;
16171617   case 2:
1618      wd17xx_sector_w(machine, 0, data);
1618      wd17xx_sector_w(space, 0, data);
16191619      break;
16201620   case 3:
1621      wd17xx_data_w(machine, 0, data);
1621      wd17xx_data_w(space, 0, data);
16221622      break;
16231623   }
16241624}
src/mess/mess.mak
r3575r3576
378378   $(MESSOBJ)/pk8020.a \
379379   $(MESSOBJ)/vector06.a \
380380   $(MESSOBJ)/homelab.a \
381   $(MESSOBJ)/bk.a \
382   $(MESSOBJ)/b2m.a \
381383   $(MESSOBJ)/shared.a \
382384
383385#   $(MESSOBJ)/acorn.a \
r3575r3576
393395#   $(MESSOBJ)/at.a \
394396#   $(MESSOBJ)/atari.a \
395397#   $(MESSOBJ)/avigo.a \
396#   $(MESSOBJ)/b2m.a \
397398#   $(MESSOBJ)/bally.a \
398399#   $(MESSOBJ)/bandai.a \
399400#   $(MESSOBJ)/be.a \
400#   $(MESSOBJ)/bk.a \
401401#   $(MESSOBJ)/bondwell.a \
402402#   $(MESSOBJ)/cbm.a \
403403#   $(MESSOBJ)/cbmshare.a \
r3575r3576
532532   $(MESS_MACHINE)/mm58274c.o \
533533   $(MESS_FORMATS)/rk_cas.o   \
534534   $(MESS_MACHINE)/nec765.o   \
535   $(MESS_MACHINE)/wd17xx.o   \
535536   $(MESS_MACHINE)/68901mfp.o \
536537#   $(MESS_DEVICES)/z80bin.o   \
537538#   $(MESS_VIDEO)/cdp1864.o      \
538539#   $(MESS_VIDEO)/crtc6845.o   \
539540#   $(MESS_MACHINE)/pclpt.o    \
540#   $(MESS_MACHINE)/wd17xx.o   \
541541#   $(MESS_MACHINE)/z80dart.o   \
542542#   $(MESS_VIDEO)/msm6255.o   \
543543

Previous 15994 Revisions Next


© 1998-2018 The MESS Team