trunk/src/mame/machine/n64.c
| r249137 | r249138 | |
| 2266 | 2266 | } |
| 2267 | 2267 | else // dd read, BM Mode 1 |
| 2268 | 2268 | { |
| 2269 | | if(((dd_track_reg & 0xFFF) == 6) && (dd_start_block == 0)) |
| 2269 | if(((dd_track_reg & 0xFFF) == 6) && (dd_start_block == 0) && ((machine().root_device().ioport("input")->read() & 0x0100) == 0x0000)) |
| 2270 | 2270 | { |
| 2271 | //only fail read LBA 12 if retail disk drive |
| 2271 | 2272 | dd_status_reg &= ~DD_ASIC_STATUS_DREQ; |
| 2273 | dd_buf_status_reg |= DD_BMST_MICRO_STATUS; |
| 2272 | 2274 | } |
| 2273 | 2275 | else if(dd_current_reg < SECTORS_PER_BLOCK) |
| 2274 | 2276 | { |
| r249137 | r249138 | |
| 2336 | 2338 | sector = (UINT8*)machine().root_device().memregion("disk")->base(); |
| 2337 | 2339 | sector += dd_track_offset; |
| 2338 | 2340 | sector += dd_start_block * SECTORS_PER_BLOCK * ddZoneSecSize[dd_zone]; |
| 2339 | | sector += (dd_current_reg) * ddZoneSecSize[dd_zone]; |
| 2341 | sector += (dd_current_reg) * (dd_sector_size + 1); |
| 2340 | 2342 | |
| 2341 | 2343 | //logerror("Read Block %d, Sector %d\n", dd_start_block, dd_current_reg); |
| 2342 | 2344 | |
| 2343 | | for(int i = 0; i < ddZoneSecSize[dd_zone]/4; i++) |
| 2345 | for(int i = 0; i < (dd_sector_size + 1)/4; i++) |
| 2344 | 2346 | { |
| 2345 | 2347 | dd_sector_data[i] = sector[(i*4 + 0)] << 24 | sector[(i*4 + 1)] << 16 | |
| 2346 | 2348 | sector[(i*4 + 2)] << 8 | sector[(i*4 + 3)]; |
| r249137 | r249138 | |
| 2421 | 2423 | ret = dd_seq_ctrl_reg; |
| 2422 | 2424 | break; |
| 2423 | 2425 | case 0x40/4: // ASIC ID |
| 2424 | | ret = 0x00030000; // Japan Retail Drive |
| 2426 | if ((machine().root_device().ioport("input")->read() & 0x0100) == 0x0000) |
| 2427 | ret = 0x00030000; // Japan Retail Drive |
| 2428 | else |
| 2429 | ret = 0x00040000; // Development Drive |
| 2425 | 2430 | break; |
| 2426 | 2431 | } |
| 2427 | 2432 | |
trunk/src/mess/drivers/apple2.c
| r249137 | r249138 | |
| 1448 | 1448 | ROM_LOAD ( "unitron.f0" , 0x3000, 0x1000, CRC(8e047c4a) SHA1(78c57c0e00dfce7fdec9437fe2b4c25def447e5d)) |
| 1449 | 1449 | ROM_END |
| 1450 | 1450 | |
| 1451 | ROM_START(uniap2ti) |
| 1452 | ROM_REGION(0x1000,"gfx1",0) |
| 1453 | ROM_LOAD ( "unitron.chr", 0x0000, 0x1000, CRC(7fdd1af6) SHA1(2f4f90d90f2f3a8c1fbea304e1072780fb22e698)) |
| 1454 | |
| 1455 | ROM_REGION(0x4000,"maincpu",0) |
| 1456 | ROM_LOAD ( "unitron_pt.d0", 0x1000, 0x1000, CRC(311beae6) SHA1(f6379aba9ac982850edc314c93a393844a3349ef)) |
| 1457 | ROM_LOAD ( "unitron.e0" , 0x2000, 0x1000, CRC(0d494efd) SHA1(a2fd1223a3ca0cfee24a6afe66ea3c4c144dd98e)) |
| 1458 | ROM_LOAD ( "unitron.f0" , 0x3000, 0x1000, CRC(8e047c4a) SHA1(78c57c0e00dfce7fdec9437fe2b4c25def447e5d)) |
| 1459 | |
| 1460 | ROM_REGION(0x4000,"keyboard",0) |
| 1461 | ROM_LOAD ( "unitron_apii_keyboard.ic3", 0x1000, 0x1000, CRC(311beae6) SHA1(f6379aba9ac982850edc314c93a393844a3349ef)) |
| 1462 | ROM_END |
| 1463 | |
| 1464 | |
| 1451 | 1465 | /* |
| 1452 | 1466 | J-Plus ROM numbers confirmed by: |
| 1453 | 1467 | http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Computers/Apple%20II/Apple%20II%20j-plus/Photos/Apple%20II%20j-plus%20-%20Motherboard.jpg |
| r249137 | r249138 | |
| 1587 | 1601 | COMP( 1982, maxxi, apple2, 0, apple2p, apple2p, driver_device, 0, "Polymax", "Maxxi", MACHINE_SUPPORTS_SAVE ) |
| 1588 | 1602 | COMP( 1982, prav82, apple2, 0, apple2p, apple2p, driver_device, 0, "Pravetz", "Pravetz 82", MACHINE_SUPPORTS_SAVE ) |
| 1589 | 1603 | COMP( 1982, ace100, apple2, 0, apple2, apple2p, driver_device, 0, "Franklin Computer", "Franklin Ace 100", MACHINE_SUPPORTS_SAVE ) |
| 1590 | | COMP( 1982, uniap2en, apple2, 0, apple2p, apple2p, driver_device, 0, "Unitron Eletr??nica", "Unitron AP II (in English)", MACHINE_SUPPORTS_SAVE ) |
| 1591 | | COMP( 1982, uniap2pt, apple2, 0, apple2p, apple2p, driver_device, 0, "Unitron Eletr??nica", "Unitron AP II (in Brazilian Portuguese)", MACHINE_SUPPORTS_SAVE ) |
| 1604 | COMP( 1982, uniap2en, apple2, 0, apple2p, apple2p, driver_device, 0, "Unitron Eletronica", "Unitron AP II (in English)", MACHINE_SUPPORTS_SAVE ) |
| 1605 | COMP( 1982, uniap2pt, apple2, 0, apple2p, apple2p, driver_device, 0, "Unitron Eletronica", "Unitron AP II (in Brazilian Portuguese)", MACHINE_SUPPORTS_SAVE ) |
| 1606 | COMP( 198?, uniap2ti, apple2, 0, apple2p, apple2p, driver_device, 0, "Unitron Eletronica", "Unitron AP II+", MACHINE_SUPPORTS_SAVE ) |
| 1592 | 1607 | COMP( 1983, agat7, apple2, 0, apple2p, apple2p, driver_device, 0, "Agat", "Agat-7", MACHINE_NOT_WORKING) // disk controller ROM JSRs to $FCA8 which is a delay on apple II, illegal instruction crash here :( |
| 1593 | 1608 | // reverse font direction -\/ |
| 1594 | 1609 | COMP( 1984, ivelultr, apple2, 0, apple2p, apple2p, driver_device, 0, "Ivasim", "Ivel Ultra", MACHINE_SUPPORTS_SAVE ) |
trunk/src/mess/drivers/n64.c
| r249137 | r249138 | |
| 89 | 89 | |
| 90 | 90 | static INPUT_PORTS_START( n64 ) |
| 91 | 91 | PORT_START("input") |
| 92 | | PORT_CONFNAME(0x03, 0x01, "Controller Port 0 Device") |
| 92 | PORT_CONFNAME(0x0003, 0x0001, "Controller Port 0 Device") |
| 93 | 93 | PORT_CONFSETTING(0x00, "None") |
| 94 | 94 | PORT_CONFSETTING(0x01, "Joypad") |
| 95 | 95 | PORT_CONFSETTING(0x02, "Mouse") |
| 96 | | PORT_CONFNAME(0x0C, 0x00, "Controller Port 1 Device") |
| 96 | PORT_CONFNAME(0x000C, 0x0000, "Controller Port 1 Device") |
| 97 | 97 | PORT_CONFSETTING(0x00, "None") |
| 98 | 98 | PORT_CONFSETTING(0x04, "Joypad") |
| 99 | 99 | PORT_CONFSETTING(0x08, "Mouse") |
| 100 | | PORT_CONFNAME(0x30, 0x00, "Controller Port 2 Device") |
| 100 | PORT_CONFNAME(0x0030, 0x0000, "Controller Port 2 Device") |
| 101 | 101 | PORT_CONFSETTING(0x00, "None") |
| 102 | 102 | PORT_CONFSETTING(0x10, "Joypad") |
| 103 | 103 | PORT_CONFSETTING(0x20, "Mouse") |
| 104 | | PORT_CONFNAME(0xC0, 0x00, "Controller Port 3 Device") |
| 104 | PORT_CONFNAME(0x00C0, 0x0000, "Controller Port 3 Device") |
| 105 | 105 | PORT_CONFSETTING(0x00, "None") |
| 106 | 106 | PORT_CONFSETTING(0x40, "Joypad") |
| 107 | 107 | PORT_CONFSETTING(0x80, "Mouse") |
| 108 | |
| 109 | PORT_CONFNAME(0x0100, 0x0000, "Disk Drive") |
| 110 | PORT_CONFSETTING(0x0000, "Retail") |
| 111 | PORT_CONFSETTING(0x0100, "Development") |
| 108 | 112 | |
| 109 | 113 | //Player 1 |
| 110 | 114 | PORT_START("P1") |