Previous 15994 Revisions Next

r3306 Saturday 20th September, 2008 at 16:42:44 UTC by Fabio Priuli
[C128] A small piece had got lost
[src/mess/machine]c128.c cbmipt.c

src/mess/machine/c128.c
r3305r3306
303303#if 1
304304    memory_set_bankptr(10, c128_z80);
305305    memory_set_bankptr(11, c128_ram + 0x1000);
306    if ( (( (input_port_read(machine, "CFG") & 0x300) == 0x100 ) && (MMU_RAM_ADDR >= 0x40000))
307        || (( (input_port_read(machine, "CFG") & 0x300) == 0x000) && (MMU_RAM_ADDR >= 0x20000)) )
306    if ( (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x02 ) && (MMU_RAM_ADDR >= 0x40000))
307        || (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x00) && (MMU_RAM_ADDR >= 0x20000)) )
308308       c128_ram = NULL;
309309#else
310310    if (MMU_BOTTOM)
r3305r3306
370370      memory_set_bankptr(9, c64_memory + 0xff05);
371371    }
372372
373    if ( (( (input_port_read(machine, "CFG") & 0x300) == 0x100 ) && (MMU_RAM_ADDR >= 0x40000))
374        || (( (input_port_read(machine, "CFG") & 0x300) == 0x000) && (MMU_RAM_ADDR >= 0x20000)) )
373    if ( (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x02 ) && (MMU_RAM_ADDR >= 0x40000))
374        || (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x00) && (MMU_RAM_ADDR >= 0x20000)) )
375375       c128_ram = NULL;
376376#endif
377377}
r3305r3306
537537         memory_set_bankptr(16, c128_external_function + 0x3f05);
538538      }
539539
540      if ( (( (input_port_read(machine, "CFG") & 0x300) == 0x100 ) && (MMU_RAM_ADDR >= 0x40000))
541            || (( (input_port_read(machine, "CFG") & 0x300) == 0x000) && (MMU_RAM_ADDR >= 0x20000)) )
540      if ( (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x02 ) && (MMU_RAM_ADDR >= 0x40000))
541            || (( (input_port_read(machine, "SPECIAL") & 0x06) == 0x00) && (MMU_RAM_ADDR >= 0x20000)) )
542542         c128_ram = NULL;
543543   }
544544}
r3305r3306
661661      break;
662662   case 0xb:
663663      /* hinybble number of 64 kb memory blocks */
664      if ((input_port_read(machine, "CFG") & 0x300) == 0x100)         // 256KB RAM
664      if ((input_port_read(machine, "SPECIAL") & 0x06) == 0x02)         // 256KB RAM
665665         data = 0x4f;
666      else if ((input_port_read(machine, "CFG") & 0x300) == 0x200)   //   1MB
666      else if ((input_port_read(machine, "SPECIAL") & 0x06) == 0x04)   //   1MB
667667         data = 0xf;
668668      else
669669         data = 0x2f;
src/mess/machine/cbmipt.c
r3305r3306
420420   PORT_DIPNAME( 0x08, 0x08, "DIN,TV / RGBI Monitor (switch)") PORT_CODE(KEYCODE_ENTER_PAD)
421421   PORT_DIPSETTING(   0x00, "DIN,TV" )                                       
422422   PORT_DIPSETTING(   0x08, "RGBI" )                                         
423   PORT_DIPNAME( 0x06, 0x00, "Main Memory / MMU Version")
424   PORT_DIPSETTING(   0x00, "128 KByte" )
425   PORT_DIPSETTING(   0x02, "256 KByte" )
426   PORT_DIPSETTING(   0x04, "1024 KByte" )
423427INPUT_PORTS_END
424428
425429

Previous 15994 Revisions Next


© 1998-2018 The MESS Team