src/emu/cpu/mcs48/mcs48.c
| r13827 | r13828 | |
| 1369 | 1369 | case CPUINFO_INT_DEFAULT_IRQ_VECTOR: info->i = MCS48_INPUT_IRQ; break; |
| 1370 | 1370 | case DEVINFO_INT_ENDIANNESS: info->i = ENDIANNESS_LITTLE; break; |
| 1371 | 1371 | case CPUINFO_INT_CLOCK_MULTIPLIER: info->i = 1; break; |
| 1372 | | case CPUINFO_INT_CLOCK_DIVIDER: info->i = 3*5; break; |
| 1373 | 1372 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 1; break; |
| 1374 | 1373 | case CPUINFO_INT_MAX_INSTRUCTION_BYTES: info->i = 2; break; |
| 1375 | 1374 | case CPUINFO_INT_MIN_CYCLES: info->i = 1; break; |
| r13827 | r13828 | |
| 1418 | 1417 | CPU-SPECIFIC CONTEXT ACCESS |
| 1419 | 1418 | ***************************************************************************/ |
| 1420 | 1419 | |
| 1421 | | static void mcs48_generic_get_info(legacy_cpu_device *device, UINT32 state, cpuinfo *info, UINT8 features, int romsize, int ramsize, const char *name) |
| 1420 | static void mcs48_generic_get_info(legacy_cpu_device *device, UINT32 state, cpuinfo *info, UINT8 features, int romsize, int ramsize, int cycle_states, const char *name) |
| 1422 | 1421 | { |
| 1423 | 1422 | switch (state) |
| 1424 | 1423 | { |
| 1425 | 1424 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1425 | case CPUINFO_INT_CLOCK_DIVIDER: |
| 1426 | info->i = 3 * cycle_states; |
| 1427 | break; |
| 1428 | |
| 1426 | 1429 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA: |
| 1427 | 1430 | if (ramsize == 64) |
| 1428 | 1431 | info->i = 6; |
| r13827 | r13828 | |
| 1494 | 1497 | |
| 1495 | 1498 | |
| 1496 | 1499 | /* Official Intel MCS-48 parts */ |
| 1497 | | CPU_GET_INFO( i8021 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, "I8021"); } |
| 1498 | | CPU_GET_INFO( i8022 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8022"); } |
| 1499 | | CPU_GET_INFO( i8035 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 64, "I8035"); } |
| 1500 | | CPU_GET_INFO( i8048 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, "I8048"); } |
| 1501 | | CPU_GET_INFO( i8648 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, "I8648"); } |
| 1502 | | CPU_GET_INFO( i8748 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, "I8748"); } |
| 1503 | | CPU_GET_INFO( i8039 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 128, "I8039"); } |
| 1504 | | CPU_GET_INFO( i8049 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8049"); } |
| 1505 | | CPU_GET_INFO( i8749 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8749"); } |
| 1506 | | CPU_GET_INFO( i8040 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 256, "I8040"); } |
| 1507 | | CPU_GET_INFO( i8050 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 4096, 256, "I8050"); } |
| 1500 | CPU_GET_INFO( i8021 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, 10, "I8021"); } |
| 1501 | CPU_GET_INFO( i8022 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, 10, "I8022"); } |
| 1502 | CPU_GET_INFO( i8035 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 64, 5, "I8035"); } |
| 1503 | CPU_GET_INFO( i8048 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, 5, "I8048"); } |
| 1504 | CPU_GET_INFO( i8648 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, 5, "I8648"); } |
| 1505 | CPU_GET_INFO( i8748 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, 5, "I8748"); } |
| 1506 | CPU_GET_INFO( i8039 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 128, 5, "I8039"); } |
| 1507 | CPU_GET_INFO( i8049 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, 5, "I8049"); } |
| 1508 | CPU_GET_INFO( i8749 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, 5, "I8749"); } |
| 1509 | CPU_GET_INFO( i8040 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 256, 5, "I8040"); } |
| 1510 | CPU_GET_INFO( i8050 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 4096, 256, 5, "I8050"); } |
| 1508 | 1511 | |
| 1509 | 1512 | |
| 1510 | 1513 | /* Official Intel UPI-41 parts */ |
| 1511 | | CPU_GET_INFO( i8041 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, "I8041"); } |
| 1512 | | CPU_GET_INFO( i8741 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, "I8741"); } |
| 1513 | | CPU_GET_INFO( i8042 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8042"); } |
| 1514 | | CPU_GET_INFO( i8242 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8242"); } |
| 1515 | | CPU_GET_INFO( i8742 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8742"); } |
| 1514 | CPU_GET_INFO( i8041 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, 5, "I8041"); } |
| 1515 | CPU_GET_INFO( i8741 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, 5, "I8741"); } |
| 1516 | CPU_GET_INFO( i8042 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, 5, "I8042"); } |
| 1517 | CPU_GET_INFO( i8242 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, 5, "I8242"); } |
| 1518 | CPU_GET_INFO( i8742 ) { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, 5, "I8742"); } |
| 1516 | 1519 | |
| 1517 | 1520 | |
| 1518 | 1521 | /* Clones */ |
| 1519 | | CPU_GET_INFO( mb8884 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 64, "MB8884"); } |
| 1520 | | CPU_GET_INFO( n7751 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, "N7751"); } |
| 1521 | | CPU_GET_INFO( m58715 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "M58715"); } |
| 1522 | CPU_GET_INFO( mb8884 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 0, 64, 5, "MB8884"); } |
| 1523 | CPU_GET_INFO( n7751 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024, 64, 5, "N7751"); } |
| 1524 | CPU_GET_INFO( m58715 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, 5, "M58715"); } |
| 1522 | 1525 | |
| 1523 | 1526 | /* Official Intel MCS-48 parts */ |
| 1524 | 1527 | DEFINE_LEGACY_CPU_DEVICE(I8021, i8021); /* 1k internal ROM, 64 bytes internal RAM */ |