Previous 15994 Revisions Next

r3668 Thursday 27th November, 2008 at 18:25:16 UTC by Wilbert Pol
Reenabled be.a
[src/mess]mess.mak
[src/mess/drivers]bebox.c
[src/mess/machine]bebox.c mpc105.c
[src/mess/video]cirrus.c

src/mess/video/cirrus.c
r3667r3668
208208WRITE8_HANDLER( cirrus_42E8_w )
209209{
210210   if (data & 0x80)
211      pc_vga_reset(machine);
211      pc_vga_reset(space->machine);
212212}
213213
214214
215215
216WRITE64_HANDLER( cirrus_64be_42E8_w ) { write64be_with_write8_handler(cirrus_42E8_w, machine, offset, data, mem_mask); }
216WRITE64_HANDLER( cirrus_64be_42E8_w ) { write64be_with_write8_handler(cirrus_42E8_w, space, offset, data, mem_mask); }
217217
src/mess/machine/mpc105.c
r3667r3668
3434
3535   if (mpc105->bank_base > 0)
3636   {
37      for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++)
37      /* TODO: Fix me properly! changing all cpus???? */
38      for (cpunum = 0; cpunum < 2 /*cpu_gettotalcpu()*/; cpunum++)
3839      {
40         const address_space *space = cpu_get_address_space( machine->cpu[cpunum], ADDRESS_SPACE_PROGRAM );
41
3942         /* first clear everything out */
40         memory_install_read64_handler(machine, cpunum, ADDRESS_SPACE_PROGRAM, 0x00000000, 0x3FFFFFFF, 0, 0, SMH_NOP);
41         memory_install_write64_handler(machine, cpunum, ADDRESS_SPACE_PROGRAM, 0x00000000, 0x3FFFFFFF, 0, 0, SMH_NOP);
43         memory_install_read64_handler(space, 0x00000000, 0x3FFFFFFF, 0, 0, SMH_NOP);
44         memory_install_write64_handler(space, 0x00000000, 0x3FFFFFFF, 0, 0, SMH_NOP);
4245      }
4346   }
4447
r3667r3668
6265
6366            if (mpc105->bank_base > 0)
6467            {
65               for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++)
68               /* TODO: Fix me properly! changing all cpus??? */
69               for (cpunum = 0; cpunum < 2 /*cpu_gettotalcpu()*/; cpunum++)
6670               {
67                  memory_install_read64_handler(machine, cpunum, ADDRESS_SPACE_PROGRAM, begin, end,
68                     0, 0, (read64_machine_func) (FPTR)(bank + mpc105->bank_base));
69                  memory_install_write64_handler(machine, cpunum, ADDRESS_SPACE_PROGRAM, begin, end,
70                     0, 0, (write64_machine_func) (FPTR)(bank + mpc105->bank_base));
71                  const address_space *space = cpu_get_address_space( machine->cpu[cpunum], ADDRESS_SPACE_PROGRAM );
72
73                  memory_install_read64_handler(space, begin, end,
74                     0, 0, (read64_space_func) (FPTR)(bank + mpc105->bank_base));
75                  memory_install_write64_handler(space, begin, end,
76                     0, 0, (write64_space_func) (FPTR)(bank + mpc105->bank_base));
7177               }
72               memory_set_bankptr(bank + mpc105->bank_base, mess_ram);
78               memory_set_bankptr(machine, bank + mpc105->bank_base, mess_ram);
7379            }
7480         }
7581      }
r3667r3668
111117         break;
112118
113119      case 0xA8:   /* processor interface configuration 1 */
114         switch(cpu_getactivecpu())
120         /* TODO: Fix me! */
121         switch(/*cpu_getactivecpu()*/0)
115122         {
116123            case 0:
117124               result = 0xFF000010;
src/mess/machine/bebox.c
r3667r3668
167167      if (LOG_CPUIMASK)
168168      {
169169         logerror("BeBox CPU #0 pc=0x%08X imask=0x%08x\n",
170            (unsigned) activecpu_get_reg(REG_PC), bebox_cpu_imask[0]);
170            (unsigned) cpu_get_pc( space->cpu), bebox_cpu_imask[0]);
171171      }
172      bebox_update_interrupts(machine);
172      bebox_update_interrupts(space->machine);
173173   }
174174}
175175
r3667r3668
184184      if (LOG_CPUIMASK)
185185      {
186186         logerror("BeBox CPU #1 pc=0x%08X imask=0x%08x\n",
187            (unsigned) activecpu_get_reg(REG_PC), bebox_cpu_imask[1]);
187            (unsigned) cpu_get_pc( space->cpu ), bebox_cpu_imask[1]);
188188      }
189      bebox_update_interrupts(machine);
189      bebox_update_interrupts(space->machine);
190190   }
191191}
192192
r3667r3668
194194{
195195   UINT32 result;
196196   result = bebox_crossproc_interrupts;
197   if (cpu_getactivecpu())
197   /* TODO: This test needs to be really fixed */
198   if ( space->machine->activecpu != space->machine->cpu[0] )
198199      result |= 0x02000000;
199200   else
200201      result &= ~0x02000000;
r3667r3668
239240               */
240241         }
241242
242         cpunum_set_input_line(machine, crossproc_map[i].cpunum, crossproc_map[i].inputline, line);
243         cpu_set_input_line(space->machine->cpu[crossproc_map[i].cpunum], crossproc_map[i].inputline, line);
243244      }
244245   }
245246}
r3667r3668
250251
251252   if (b & 0x20)
252253   {
253      cpu_set_input_line(machine->cpu[1], INPUT_LINE_RESET, (b & 0x80) ? CLEAR_LINE : ASSERT_LINE);
254      cpu_set_input_line( space->machine->cpu[1], INPUT_LINE_RESET, (b & 0x80) ? CLEAR_LINE : ASSERT_LINE);
254255   }
255256}
256257
r3667r3668
270271            bebox_interrupts, bebox_cpu_imask[cpunum], interrupt ? "on" : "off");
271272      }
272273
273      cpunum_set_input_line(machine, cpunum, INPUT_LINE_IRQ0, interrupt ? ASSERT_LINE : CLEAR_LINE);
274      cpu_set_input_line(machine->cpu[cpunum], INPUT_LINE_IRQ0, interrupt ? ASSERT_LINE : CLEAR_LINE);
274275   }
275276}
276277
r3667r3668
320321      assert_always((interrupt_bit < ARRAY_LENGTH(interrupt_names)) && (interrupt_names[interrupt_bit] != NULL), "Raising invalid interrupt");
321322
322323      logerror("bebox_set_irq_bit(): pc[0]=0x%08x pc[1]=0x%08x %s interrupt #%u (%s)\n",
323         (unsigned) cpunum_get_reg(0, REG_PC),
324         (unsigned) cpunum_get_reg(1, REG_PC),
324         (unsigned) cpu_get_reg( machine->cpu[0], REG_PC),
325         (unsigned) cpu_get_reg( machine->cpu[1], REG_PC),
325326         val ? "Asserting" : "Clearing",
326327         interrupt_bit, interrupt_names[interrupt_bit]);
327328   }
r3667r3668
446447   result = pic8259_acknowledge( bebox_devices.pic8259_master );
447448   if (result == 2)
448449      result = pic8259_acknowledge( bebox_devices.pic8259_slave );
449   bebox_set_irq_bit(machine, 5, 0);   /* HACK */
450   bebox_set_irq_bit(space->machine, 5, 0);   /* HACK */
450451   return ((UINT64) result) << 56;
451452}
452453
r3667r3668
493494      "ide_controller");
494495}
495496
496static READ8_HANDLER( bebox_800001F0_8_r ) { return ide_controller_r(ide_device(machine), offset + 0x1F0); }
497static WRITE8_HANDLER( bebox_800001F0_8_w ) { ide_controller_w(ide_device(machine), offset + 0x1F0, data); }
497static READ8_HANDLER( bebox_800001F0_8_r ) { return ide_controller_r(ide_device(space->machine), offset + 0x1F0); }
498static WRITE8_HANDLER( bebox_800001F0_8_w ) { ide_controller_w(ide_device(space->machine), offset + 0x1F0, data); }
498499
499READ64_HANDLER( bebox_800001F0_r ) { return read64be_with_read8_handler(bebox_800001F0_8_r, machine, offset, mem_mask); }
500WRITE64_HANDLER( bebox_800001F0_w ) { write64be_with_write8_handler(bebox_800001F0_8_w, machine, offset, data, mem_mask); }
500READ64_HANDLER( bebox_800001F0_r ) { return read64be_with_read8_handler(bebox_800001F0_8_r, space, offset, mem_mask); }
501WRITE64_HANDLER( bebox_800001F0_w ) { write64be_with_write8_handler(bebox_800001F0_8_w, space, offset, data, mem_mask); }
501502
502503
503504READ64_HANDLER( bebox_800003F0_r )
504505{
505   UINT64 result = read64be_with_read8_handler(pc_fdc_r, machine, offset, mem_mask | 0xFFFF);
506   UINT64 result = read64be_with_read8_handler(pc_fdc_r, space, offset, mem_mask | 0xFFFF);
506507
507508   if (((mem_mask >> 8) & 0xFF) == 0)
508509   {
509510      result &= ~(0xFF << 8);
510      result |= ide_controller_r(ide_device(machine), 0x3F6) << 8;
511      result |= ide_controller_r(ide_device(space->machine), 0x3F6) << 8;
511512   }
512513
513514   if (((mem_mask >> 0) & 0xFF) == 0)
514515   {
515516      result &= ~(0xFF << 0);
516      result |= ide_controller_r(ide_device(machine), 0x3F7) << 0;
517      result |= ide_controller_r(ide_device(space->machine), 0x3F7) << 0;
517518   }
518519   return result;
519520}
r3667r3668
521522
522523WRITE64_HANDLER( bebox_800003F0_w )
523524{
524   write64be_with_write8_handler(pc_fdc_w, machine, offset, data, mem_mask | 0xFFFF);
525   write64be_with_write8_handler(pc_fdc_w, space, offset, data, mem_mask | 0xFFFF);
525526
526527   if (((mem_mask >> 8) & 0xFF) == 0)
527      ide_controller_w(ide_device(machine), 0x3F6, (data >> 8) & 0xFF);
528      ide_controller_w(ide_device(space->machine), 0x3F6, (data >> 8) & 0xFF);
528529
529530   if (((mem_mask >> 0) & 0xFF) == 0)
530      ide_controller_w(ide_device(machine), 0x3F7, (data >> 0) & 0xFF);
531      ide_controller_w(ide_device(space->machine), 0x3F7, (data >> 0) & 0xFF);
531532}
532533
533534
r3667r3668
546547 *
547548 *************************************/
548549
549static read8_machine_func bebox_vga_memory_rh;
550static write8_machine_func bebox_vga_memory_wh;
550static read8_space_func bebox_vga_memory_rh;
551static write8_space_func bebox_vga_memory_wh;
551552
552553static READ64_HANDLER( bebox_video_r )
553554{
r3667r3668
567568
568569static READ64_HANDLER( bebox_vga_memory_r )
569570{
570   return read64be_with_read8_handler(bebox_vga_memory_rh, machine, offset, mem_mask);
571   return read64be_with_read8_handler(bebox_vga_memory_rh, space, offset, mem_mask);
571572}
572573
573574
574575static WRITE64_HANDLER( bebox_vga_memory_w )
575576{
576   write64be_with_write8_handler(bebox_vga_memory_wh, machine, offset, data, mem_mask);
577   write64be_with_write8_handler(bebox_vga_memory_wh, space, offset, data, mem_mask);
577578}
578579
579580
580static void bebox_map_vga_memory(offs_t begin, offs_t end, read8_machine_func rh, write8_machine_func wh)
581static void bebox_map_vga_memory(offs_t begin, offs_t end, read8_space_func rh, write8_space_func wh)
581582{
582   read64_machine_func rh64 = (rh == SMH_BANK4) ? SMH_BANK4 : bebox_vga_memory_r;
583   write64_machine_func wh64 = (wh == SMH_BANK4) ? SMH_BANK4 : bebox_vga_memory_w;
583   const address_space *space = cpu_get_address_space( Machine->cpu[0], ADDRESS_SPACE_PROGRAM );
584584
585   read64_space_func rh64 = (rh == SMH_BANK4) ? SMH_BANK4 : bebox_vga_memory_r;
586   write64_space_func wh64 = (wh == SMH_BANK4) ? SMH_BANK4 : bebox_vga_memory_w;
587
585588   bebox_vga_memory_rh = rh;
586589   bebox_vga_memory_wh = wh;
587590
588   memory_install_read64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xC00A0000, 0xC00BFFFF, 0, 0, SMH_NOP);
589   memory_install_write64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xC00A0000, 0xC00BFFFF, 0, 0, SMH_NOP);
591   memory_install_read64_handler(space, 0xC00A0000, 0xC00BFFFF, 0, 0, SMH_NOP);
592   memory_install_write64_handler(space, 0xC00A0000, 0xC00BFFFF, 0, 0, SMH_NOP);
590593
591   memory_install_read64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xC0000000 + begin, 0xC0000000 + end, 0, 0, rh64);
592   memory_install_write64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xC0000000 + begin, 0xC0000000 + end, 0, 0, wh64);
594   memory_install_read64_handler(space, 0xC0000000 + begin, 0xC0000000 + end, 0, 0, rh64);
595   memory_install_write64_handler(space, 0xC0000000 + begin, 0xC0000000 + end, 0, 0, wh64);
593596}
594597
595598
r3667r3668
665668
666669READ64_HANDLER(bebox_page_r)
667670{
668   return read64be_with_read8_handler(at_page8_r, machine, offset, mem_mask);
671   return read64be_with_read8_handler(at_page8_r, space, offset, mem_mask);
669672}
670673
671674
672675WRITE64_HANDLER(bebox_page_w)
673676{
674   write64be_with_write8_handler(at_page8_w, machine, offset, data, mem_mask);
677   write64be_with_write8_handler(at_page8_w, space, offset, data, mem_mask);
675678}
676679
677680
r3667r3668
707710
708711WRITE64_HANDLER(bebox_80000480_w)
709712{
710   write64be_with_write8_handler(at_hipage8_w, machine, offset, data, mem_mask);
713   write64be_with_write8_handler(at_hipage8_w, space, offset, data, mem_mask);
711714}
712715
713716
714717static DMA8237_MEM_READ( bebox_dma_read_byte )
715718{
719   const address_space *space = cpu_get_address_space( device->machine->cpu[0], ADDRESS_SPACE_PROGRAM );
716720   offs_t page_offset = (((offs_t) dma_offset[0][channel]) << 16)
717721      & 0x7FFF0000;
718722   return memory_read_byte(space, page_offset + offset);
r3667r3668
721725
722726static DMA8237_MEM_WRITE( bebox_dma_write_byte )
723727{
728   const address_space *space = cpu_get_address_space( device->machine->cpu[0], ADDRESS_SPACE_PROGRAM );
724729   offs_t page_offset = (((offs_t) dma_offset[0][channel]) << 16)
725730      & 0x7FFF0000;
726731   memory_write_byte(space, page_offset + offset, data);
r3667r3668
825830
826831READ64_HANDLER( bebox_flash_r )
827832{
828   return read64be_with_read8_handler(bebox_flash8_r, machine, offset, mem_mask);
833   return read64be_with_read8_handler(bebox_flash8_r, space, offset, mem_mask);
829834}
830835
831836
832837WRITE64_HANDLER( bebox_flash_w )
833838{
834   write64be_with_write8_handler(bebox_flash8_w, machine, offset, data, mem_mask);
839   write64be_with_write8_handler(bebox_flash8_w, space, offset, data, mem_mask);
835840}
836841
837842
r3667r3668
875880   int reg = offset*8;
876881   UINT64 r = 0;
877882   if (!(mem_mask & U64(0xff00000000000000))) {
878      r |= (UINT64)lsi53c810_reg_r(machine, reg+0) << 56;
883      r |= (UINT64)lsi53c810_reg_r(space, reg+0) << 56;
879884   }
880885   if (!(mem_mask & U64(0x00ff000000000000))) {
881      r |= (UINT64)lsi53c810_reg_r(machine, reg+1) << 48;
886      r |= (UINT64)lsi53c810_reg_r(space, reg+1) << 48;
882887   }
883888   if (!(mem_mask & U64(0x0000ff0000000000))) {
884      r |= (UINT64)lsi53c810_reg_r(machine, reg+2) << 40;
889      r |= (UINT64)lsi53c810_reg_r(space, reg+2) << 40;
885890   }
886891   if (!(mem_mask & U64(0x000000ff00000000))) {
887      r |= (UINT64)lsi53c810_reg_r(machine, reg+3) << 32;
892      r |= (UINT64)lsi53c810_reg_r(space, reg+3) << 32;
888893   }
889894   if (!(mem_mask & U64(0x00000000ff000000))) {
890      r |= (UINT64)lsi53c810_reg_r(machine, reg+4) << 24;
895      r |= (UINT64)lsi53c810_reg_r(space, reg+4) << 24;
891896   }
892897   if (!(mem_mask & U64(0x0000000000ff0000))) {
893      r |= (UINT64)lsi53c810_reg_r(machine, reg+5) << 16;
898      r |= (UINT64)lsi53c810_reg_r(space, reg+5) << 16;
894899   }
895900   if (!(mem_mask & U64(0x000000000000ff00))) {
896      r |= (UINT64)lsi53c810_reg_r(machine, reg+6) << 8;
901      r |= (UINT64)lsi53c810_reg_r(space, reg+6) << 8;
897902   }
898903   if (!(mem_mask & U64(0x00000000000000ff))) {
899      r |= (UINT64)lsi53c810_reg_r(machine, reg+7) << 0;
904      r |= (UINT64)lsi53c810_reg_r(space, reg+7) << 0;
900905   }
901906
902907   return r;
r3667r3668
907912{
908913   int reg = offset*8;
909914   if (!(mem_mask & U64(0xff00000000000000))) {
910      lsi53c810_reg_w(machine, reg+0, data >> 56);
915      lsi53c810_reg_w(space, reg+0, data >> 56);
911916   }
912917   if (!(mem_mask & U64(0x00ff000000000000))) {
913      lsi53c810_reg_w(machine, reg+1, data >> 48);
918      lsi53c810_reg_w(space, reg+1, data >> 48);
914919   }
915920   if (!(mem_mask & U64(0x0000ff0000000000))) {
916      lsi53c810_reg_w(machine, reg+2, data >> 40);
921      lsi53c810_reg_w(space, reg+2, data >> 40);
917922   }
918923   if (!(mem_mask & U64(0x000000ff00000000))) {
919      lsi53c810_reg_w(machine, reg+3, data >> 32);
924      lsi53c810_reg_w(space, reg+3, data >> 32);
920925   }
921926   if (!(mem_mask & U64(0x00000000ff000000))) {
922      lsi53c810_reg_w(machine, reg+4, data >> 24);
927      lsi53c810_reg_w(space, reg+4, data >> 24);
923928   }
924929   if (!(mem_mask & U64(0x0000000000ff0000))) {
925      lsi53c810_reg_w(machine, reg+5, data >> 16);
930      lsi53c810_reg_w(space, reg+5, data >> 16);
926931   }
927932   if (!(mem_mask & U64(0x000000000000ff00))) {
928      lsi53c810_reg_w(machine, reg+6, data >> 8);
933      lsi53c810_reg_w(space, reg+6, data >> 8);
929934   }
930935   if (!(mem_mask & U64(0x00000000000000ff))) {
931      lsi53c810_reg_w(machine, reg+7, data >> 0);
936      lsi53c810_reg_w(space, reg+7, data >> 0);
932937   }
933938}
934939
r3667r3668
941946static UINT32 scsi53c810_fetch(UINT32 dsp)
942947{
943948   UINT32 result;
944   result = program_read_dword_64be(dsp & 0x7FFFFFFF);
949   result = memory_read_dword_64be( cpu_get_address_space( Machine->cpu[0], ADDRESS_SPACE_PROGRAM ), dsp & 0x7FFFFFFF);
945950   return BYTE_REVERSE32(result);
946951}
947952
r3667r3668
10071012               /* brutal ugly hack; at some point the PCI code should be handling this stuff */
10081013               if (scsi53c810_data[5] != 0xFFFFFFF0)
10091014               {
1015                  const address_space *space = cpu_get_address_space( Machine->cpu[0], ADDRESS_SPACE_PROGRAM );
1016
10101017                  addr = (scsi53c810_data[5] | 0xC0000000) & ~0xFF;
1011                  memory_install_read64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, addr, addr + 0xFF, 0, 0, scsi53c810_r);
1012                  memory_install_write64_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, addr, addr + 0xFF, 0, 0, scsi53c810_w);
1018                  memory_install_read64_handler(space, addr, addr + 0xFF, 0, 0, scsi53c810_r);
1019                  memory_install_write64_handler(space, addr, addr + 0xFF, 0, 0, scsi53c810_w);
10131020               }
10141021            }
10151022            break;
r3667r3668
10891096
10901097DRIVER_INIT( bebox )
10911098{
1092   int cpu;
1099   const address_space *space_0 = cpu_get_address_space( machine->cpu[0], ADDRESS_SPACE_PROGRAM );
1100   const address_space *space_1 = cpu_get_address_space( machine->cpu[1], ADDRESS_SPACE_PROGRAM );
10931101   offs_t vram_begin;
10941102   offs_t vram_end;
10951103
r3667r3668
11031111   intelflash_init(0, FLASH_FUJITSU_29F016A, memory_region(machine, "user1"));
11041112
11051113   /* install MESS managed RAM */
1106   for (cpu = 0; cpu < 2; cpu++)
1107   {
1108      memory_install_read64_handler(machine, cpu, ADDRESS_SPACE_PROGRAM, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
1109      memory_install_write64_handler(machine, cpu, ADDRESS_SPACE_PROGRAM, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
1110   }
1114   memory_install_read64_handler(space_0, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
1115   memory_install_write64_handler(space_0, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
1116   memory_install_read64_handler(space_1, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
1117   memory_install_write64_handler(space_1, 0, mess_ram_size - 1, 0, 0x02000000, SMH_BANK3);
11111118   memory_set_bankptr(machine, 3, mess_ram);
11121119
11131120   mc146818_init(machine, MC146818_STANDARD);
r3667r3668
11171124   /* install VGA memory */
11181125   vram_begin = 0xC1000000;
11191126   vram_end = vram_begin + pc_vga_memory_size() - 1;
1120   for (cpu = 0; cpu < 2; cpu++)
1121   {
1122      memory_install_read64_handler(machine, cpu, ADDRESS_SPACE_PROGRAM, vram_begin, vram_end, 0, 0, bebox_video_r);
1123      memory_install_write64_handler(machine, cpu, ADDRESS_SPACE_PROGRAM, vram_begin, vram_end, 0, 0, bebox_video_w);
1124   }
1127   memory_install_read64_handler(space_0, vram_begin, vram_end, 0, 0, bebox_video_r);
1128   memory_install_write64_handler(space_0, vram_begin, vram_end, 0, 0, bebox_video_w);
1129   memory_install_read64_handler(space_1, vram_begin, vram_end, 0, 0, bebox_video_r);
1130   memory_install_write64_handler(space_1, vram_begin, vram_end, 0, 0, bebox_video_w);
11251131
11261132   /* The following is a verrrry ugly hack put in to support NetBSD for
11271133    * NetBSD.  When NetBSD/bebox it does most of its work on CPU #0 and then
r3667r3668
11411147         /* bcctr 0x14, 0 */
11421148         U64(0x4E80042000000000)
11431149      };
1144      memory_install_read64_handler(machine, 1, ADDRESS_SPACE_PROGRAM, 0x9421FFF0, 0x9421FFFF, 0, 0, SMH_BANK1);
1150      memory_install_read64_handler(space_1, 0x9421FFF0, 0x9421FFFF, 0, 0, SMH_BANK1);
11451151      memory_set_bankptr(machine, 1, ops);
11461152   }
11471153}
src/mess/mess.mak
r3667r3668
383383   $(MESSOBJ)/b2m.a \
384384   $(MESSOBJ)/bally.a \
385385   $(MESSOBJ)/bandai.a \
386   $(MESSOBJ)/be.a \
386387   $(MESSOBJ)/bk.a \
387388   $(MESSOBJ)/bondwell.a \
388389   $(MESSOBJ)/cbm.a \
r3667r3668
448449   $(MESSOBJ)/shared.a \
449450
450451#   $(MESSOBJ)/atari.a \
451#   $(MESSOBJ)/be.a \
452452#   $(MESSOBJ)/cgenie.a \
453453#   $(MESSOBJ)/coco.a \
454454#   $(MESSOBJ)/compis.a \
src/mess/drivers/bebox.c
r3667r3668
3434#include "formats/pc_dsk.h"
3535
3636
37static READ8_HANDLER(at_dma8237_1_r)  { return dma8237_r((device_config*)device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_2" ), offset / 2); }
38static WRITE8_HANDLER(at_dma8237_1_w) { dma8237_w((device_config*)device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_2" ), offset / 2, data); }
37static READ8_HANDLER(at_dma8237_1_r)  { return dma8237_r((device_config*)device_list_find_by_tag( space->machine->config->devicelist, DMA8237, "dma8237_2" ), offset / 2); }
38static WRITE8_HANDLER(at_dma8237_1_w) { dma8237_w((device_config*)device_list_find_by_tag( space->machine->config->devicelist, DMA8237, "dma8237_2" ), offset / 2, data); }
3939
4040static READ64_HANDLER( bebox_dma8237_1_r )
4141{
42   return read64be_with_read8_handler(at_dma8237_1_r, machine, offset, mem_mask);
42   return read64be_with_read8_handler(at_dma8237_1_r, space, offset, mem_mask);
4343}
4444
4545static WRITE64_HANDLER( bebox_dma8237_1_w )
4646{
47   write64be_with_write8_handler(at_dma8237_1_w, machine, offset, data, mem_mask);
47   write64be_with_write8_handler(at_dma8237_1_w, space, offset, data, mem_mask);
4848}
4949
5050

Previous 15994 Revisions Next


© 1998-2018 The MESS Team