Previous 15994 Revisions Next

r13828 Tuesday 3rd January, 2012 at 06:48:30 UTC by Curt Coder
[MCS48] Fixed I8021/I8022 clock divider. [Curt Coder]
[src/emu/cpu/mcs48]mcs48.c

src/emu/cpu/mcs48/mcs48.c
r13827r13828
13691369      case CPUINFO_INT_DEFAULT_IRQ_VECTOR:         info->i = MCS48_INPUT_IRQ;            break;
13701370      case DEVINFO_INT_ENDIANNESS:               info->i = ENDIANNESS_LITTLE;         break;
13711371      case CPUINFO_INT_CLOCK_MULTIPLIER:            info->i = 1;                     break;
1372      case CPUINFO_INT_CLOCK_DIVIDER:               info->i = 3*5;                     break;
13731372      case CPUINFO_INT_MIN_INSTRUCTION_BYTES:         info->i = 1;                     break;
13741373      case CPUINFO_INT_MAX_INSTRUCTION_BYTES:         info->i = 2;                     break;
13751374      case CPUINFO_INT_MIN_CYCLES:               info->i = 1;                     break;
r13827r13828
14181417    CPU-SPECIFIC CONTEXT ACCESS
14191418***************************************************************************/
14201419
1421static void mcs48_generic_get_info(legacy_cpu_device *device, UINT32 state, cpuinfo *info, UINT8 features, int romsize, int ramsize, const char *name)
1420static 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)
14221421{
14231422   switch (state)
14241423   {
14251424      /* --- 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
14261429      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:
14271430         if (ramsize == 64)
14281431            info->i = 6;
r13827r13828
14941497
14951498
14961499/* Official Intel MCS-48 parts */
1497CPU_GET_INFO( i8021 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, "I8021"); }
1498CPU_GET_INFO( i8022 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8022"); }
1499CPU_GET_INFO( i8035 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0,  64, "I8035"); }
1500CPU_GET_INFO( i8048 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, "I8048"); }
1501CPU_GET_INFO( i8648 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, "I8648"); }
1502CPU_GET_INFO( i8748 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, "I8748"); }
1503CPU_GET_INFO( i8039 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0, 128, "I8039"); }
1504CPU_GET_INFO( i8049 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8049"); }
1505CPU_GET_INFO( i8749 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "I8749"); }
1506CPU_GET_INFO( i8040 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0, 256, "I8040"); }
1507CPU_GET_INFO( i8050 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 4096, 256, "I8050"); }
1500CPU_GET_INFO( i8021 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, 10, "I8021"); }
1501CPU_GET_INFO( i8022 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, 10, "I8022"); }
1502CPU_GET_INFO( i8035 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0,  64,  5, "I8035"); }
1503CPU_GET_INFO( i8048 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64,  5, "I8048"); }
1504CPU_GET_INFO( i8648 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64,  5, "I8648"); }
1505CPU_GET_INFO( i8748 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64,  5, "I8748"); }
1506CPU_GET_INFO( i8039 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0, 128,  5, "I8039"); }
1507CPU_GET_INFO( i8049 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128,  5, "I8049"); }
1508CPU_GET_INFO( i8749 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128,  5, "I8749"); }
1509CPU_GET_INFO( i8040 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0, 256,  5, "I8040"); }
1510CPU_GET_INFO( i8050 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 4096, 256,  5, "I8050"); }
15081511
15091512
15101513/* Official Intel UPI-41 parts */
1511CPU_GET_INFO( i8041 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, "I8041"); }
1512CPU_GET_INFO( i8741 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128, "I8741"); }
1513CPU_GET_INFO( i8042 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8042"); }
1514CPU_GET_INFO( i8242 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8242"); }
1515CPU_GET_INFO( i8742 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256, "I8742"); }
1514CPU_GET_INFO( i8041 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128,  5, "I8041"); }
1515CPU_GET_INFO( i8741 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 1024, 128,  5, "I8741"); }
1516CPU_GET_INFO( i8042 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256,  5, "I8042"); }
1517CPU_GET_INFO( i8242 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256,  5, "I8242"); }
1518CPU_GET_INFO( i8742 )  { mcs48_generic_get_info(device, state, info, UPI41_FEATURE, 2048, 256,  5, "I8742"); }
15161519
15171520
15181521/* Clones */
1519CPU_GET_INFO( mb8884 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0,  64, "MB8884"); }
1520CPU_GET_INFO( n7751 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64, "N7751"); }
1521CPU_GET_INFO( m58715 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128, "M58715"); }
1522CPU_GET_INFO( mb8884 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE,    0,  64,  5, "MB8884"); }
1523CPU_GET_INFO( n7751 )  { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 1024,  64,  5, "N7751"); }
1524CPU_GET_INFO( m58715 ) { mcs48_generic_get_info(device, state, info, MCS48_FEATURE, 2048, 128,  5, "M58715"); }
15221525
15231526/* Official Intel MCS-48 parts */
15241527DEFINE_LEGACY_CPU_DEVICE(I8021, i8021);         /* 1k internal ROM,      64 bytes internal RAM */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team