src/mess/machine/c128.c
| r3305 | r3306 | |
| 303 | 303 | #if 1 |
| 304 | 304 | memory_set_bankptr(10, c128_z80); |
| 305 | 305 | 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)) ) |
| 308 | 308 | c128_ram = NULL; |
| 309 | 309 | #else |
| 310 | 310 | if (MMU_BOTTOM) |
| r3305 | r3306 | |
| 370 | 370 | memory_set_bankptr(9, c64_memory + 0xff05); |
| 371 | 371 | } |
| 372 | 372 | |
| 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)) ) |
| 375 | 375 | c128_ram = NULL; |
| 376 | 376 | #endif |
| 377 | 377 | } |
| r3305 | r3306 | |
| 537 | 537 | memory_set_bankptr(16, c128_external_function + 0x3f05); |
| 538 | 538 | } |
| 539 | 539 | |
| 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)) ) |
| 542 | 542 | c128_ram = NULL; |
| 543 | 543 | } |
| 544 | 544 | } |
| r3305 | r3306 | |
| 661 | 661 | break; |
| 662 | 662 | case 0xb: |
| 663 | 663 | /* 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 |
| 665 | 665 | data = 0x4f; |
| 666 | | else if ((input_port_read(machine, "CFG") & 0x300) == 0x200) // 1MB |
| 666 | else if ((input_port_read(machine, "SPECIAL") & 0x06) == 0x04) // 1MB |
| 667 | 667 | data = 0xf; |
| 668 | 668 | else |
| 669 | 669 | data = 0x2f; |
src/mess/machine/cbmipt.c
| r3305 | r3306 | |
| 420 | 420 | PORT_DIPNAME( 0x08, 0x08, "DIN,TV / RGBI Monitor (switch)") PORT_CODE(KEYCODE_ENTER_PAD) |
| 421 | 421 | PORT_DIPSETTING( 0x00, "DIN,TV" ) |
| 422 | 422 | 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" ) |
| 423 | 427 | INPUT_PORTS_END |
| 424 | 428 | |
| 425 | 429 | |