Previous 15994 Revisions Next

r7311 Wednesday 10th February, 2010 at 14:40:43 UTC by Dirk Best
More compile errors fixed
[src/mess/machine]cgenie.c coco.c comx35.c

src/mess/machine/coco.c
r7310r7311
20432043   int       wbank;         /* bank no to go in this block */
20442044   UINT8       *offset;      /* offset into coco rom for rom mapping */
20452045   char   bank[10];
2046     
2046
20472047   /* Set last RAM block dependent on map type */
20482048   if (maptype)
20492049      last_ram_block=15;
r7310r7311
23782378   UINT8 *readbank;
23792379   UINT8 *cart_rom = memory_region(machine, "cart");
23802380   char bank[10];
2381   
2381
23822382   for (i = lowblock; i <= hiblock; i++)
23832383   {
23842384      sprintf(bank,"bank%d",i+1);
2385     
2385
23862386      offset = coco3_mmu_translate(machine, i, 0);
23872387      if (offset & 0x80000000)
23882388      {
r7310r7311
23962396      else
23972397      {
23982398         /* offset into normal RAM */
2399         readbank = &messram_get_ptr(devtag_get_device(machine, "messram"))[offset];         
2399         readbank = &messram_get_ptr(devtag_get_device(machine, "messram"))[offset];
24002400         memory_install_write_bank(space, bank_info[i].start, bank_info[i].end, 0, 0, bank);
24012401      }
24022402
24032403      /* set up the banks */
2404      memory_set_bankptr(machine, bank, readbank);     
2404      memory_set_bankptr(machine, bank, readbank);
24052405
24062406      if (LOG_MMU)
24072407      {
r7310r7311
29282928{
29292929   running_device *fdc = devtag_get_device(machine, "wd2797");
29302930   wd17xx_set_complete_command_delay(fdc,20);
2931
2931
29322932   /* dgnalpha_just_reset, is here to flag that we should ignore the first irq generated */
29332933   /* by the WD2797, it is reset to 0 after the first inurrupt */
29342934   dgnalpha_just_reset=1;
r7310r7311
29392939
29402940const wd17xx_interface dgnalpha_wd17xx_interface =
29412941{
2942   DEVCB_NULL,
29422943   DEVCB_LINE(dgnalpha_fdc_intrq_w),
29432944   DEVCB_LINE(dgnalpha_fdc_drq_w),
29442945   {FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3}
src/mess/machine/comx35.c
r7310r7311
201201
202202const wd17xx_interface comx35_wd17xx_interface =
203203{
204   DEVCB_NULL,
204205   DEVCB_LINE(comx35_fdc_intrq_w),
205206   DEVCB_LINE(comx35_fdc_drq_w),
206207   {FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3}
src/mess/machine/cgenie.c
r7310r7311
445445
446446const wd17xx_interface cgenie_wd17xx_interface =
447447{
448   DEVCB_NULL,
448449   DEVCB_LINE(cgenie_fdc_intrq_w),
449450   DEVCB_NULL,
450451   {FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team