Previous 15994 Revisions Next

r5423 Thursday 13th August, 2009 at 16:51:41 UTC by Roberto Zandonà
[C64] fixed Comal80 cart loading
[src/mess/machine]c64.c

src/mess/machine/c64.c
r5422r5423
13571357
13581358static WRITE8_HANDLER( comal80_bank_w )
13591359{
1360   UINT8 bank = offset & 0x83;
1361   UINT8 *mem = memory_region(space->machine, "maincpu");
1360   UINT8 bank = data & 0x83;
13621361   UINT8 *cart = memory_region(space->machine, "cart");
13631362
13641363   /* only valid values 0x80, 0x81, 0x82, 0x83 */
r5422r5423
13671366   else
13681367   {
13691368      bank &= 0x03;
1370      memcpy(mem + c64_cbm_cart[bank].addr, cart + c64_cbm_cart[bank].start, c64_cbm_cart[bank].size);
13711369
1370      memcpy(roml, cart + bank * 0x4000, 0x4000);
1371/*
13721372      if (log_cart)
13731373      {
13741374         logerror("bank %d of size %d successfully loaded at %d!\n", bank, c64_cbm_cart[bank].size, c64_cbm_cart[bank].addr);
13751375         if (c64_cbm_cart[bank].index != bank)
13761376            logerror("Warning: According to the CHIP info this should be bank %d, but we are loading it as bank %d!\n", c64_cbm_cart[bank].index, bank);
13771377      }
1378   
1378*/   
13791379   }
13801380}
13811381

Previous 15994 Revisions Next


© 1998-2018 The MESS Team