Previous 15994 Revisions Next

r6678 Wednesday 16th December, 2009 at 14:41:16 UTC by Curt Coder
[C15x1] Cleanup.
[src/mess/machine]c1541.c c1571.c c1581.c

src/mess/machine/c1581.c
r6677r6678
403403      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1581);                  break;
404404      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
405405      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1581);                  break;
406      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1581);            break;
406      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1581);               break;
407407      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1581);            break;
408408
409409      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/machine/c1541.c
r6677r6678
10741074      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1541);                  break;
10751075      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
10761076      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1541);                  break;
1077      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1541);            break;
1077      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1541);               break;
10781078      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1541);            break;
10791079
10801080      /* --- the following bits of info are returned as NULL-terminated strings --- */
r6677r6678
10941094{
10951095   switch (state)
10961096   {
1097      /* --- the following bits of info are returned as 64-bit signed integers --- */
1098      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1541_t);                           break;
1099      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1541_config);                        break;
1100      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
1101
11021097      /* --- the following bits of info are returned as pointers --- */
11031098      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1541);                     break;
11041099      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1541);         break;
11051100
1106      /* --- the following bits of info are returned as pointers to data or functions --- */
1107      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1541);                  break;
1108      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
1109      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1541);                  break;
1110      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1541);            break;
1111      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1541);            break;
1112
11131101      /* --- the following bits of info are returned as NULL-terminated strings --- */
1114      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 1541");                     break;
1115      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore VIC-1540");                  break;
1116      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
1117      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
1118      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
1102      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore VIC-1541");                  break;
1103
1104      default:                              DEVICE_GET_INFO_CALL(c1540);                        break;
11191105   }
11201106}
11211107
r6677r6678
11271113{
11281114   switch (state)
11291115   {
1130      /* --- the following bits of info are returned as 64-bit signed integers --- */
1131      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1541_t);                           break;
1132      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1541_config);                        break;
1133      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
1134
11351116      /* --- the following bits of info are returned as pointers --- */
11361117      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1541c);                     break;
11371118      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1541c);         break;
11381119
1139      /* --- the following bits of info are returned as pointers to data or functions --- */
1140      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1541);                  break;
1141      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
1142      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1541);                  break;
1143      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1541);            break;
1144      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1541);            break;
1145
11461120      /* --- the following bits of info are returned as NULL-terminated strings --- */
11471121      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 1541C");                     break;
1148      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore VIC-1540");                  break;
1149      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
1150      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
1151      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
1122
1123      default:                              DEVICE_GET_INFO_CALL(c1540);                        break;
11521124   }
11531125}
11541126
r6677r6678
11601132{
11611133   switch (state)
11621134   {
1163      /* --- the following bits of info are returned as 64-bit signed integers --- */
1164      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1541_t);                           break;
1165      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1541_config);                        break;
1166      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
1167
11681135      /* --- the following bits of info are returned as pointers --- */
11691136      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1541ii);                  break;
11701137      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1541ii);      break;
11711138
1172      /* --- the following bits of info are returned as pointers to data or functions --- */
1173      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1541);                  break;
1174      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
1175      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1541);                  break;
1176      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1541);            break;
1177      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1541);            break;
1178
11791139      /* --- the following bits of info are returned as NULL-terminated strings --- */
11801140      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 1541-II");                  break;
1181      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore VIC-1540");                  break;
1182      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
1183      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
1184      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
1141
1142      default:                              DEVICE_GET_INFO_CALL(c1540);                        break;
11851143   }
11861144}
11871145
r6677r6678
11931151{
11941152   switch (state)
11951153   {
1196      /* --- the following bits of info are returned as 64-bit signed integers --- */
1197      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1541_t);                           break;
1198      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1541_config);                        break;
1199      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
1200
12011154      /* --- the following bits of info are returned as pointers --- */
12021155      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c2031);                     break;
12031156      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c2031);         break;
12041157
1205      /* --- the following bits of info are returned as pointers to data or functions --- */
1206      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1541);                  break;
1207      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
1208      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1541);                  break;
1209
12101158      /* --- the following bits of info are returned as NULL-terminated strings --- */
12111159      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 2031");                     break;
1212      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore VIC-1540");                  break;
1213      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
1214      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
1215      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
1160
1161      default:                              DEVICE_GET_INFO_CALL(c1540);                        break;
12161162   }
12171163}
src/mess/machine/c1571.c
r6677r6678
643643      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1571);                  break;
644644      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
645645      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1571);                  break;
646      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1571);            break;
646      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1571);               break;
647647      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1571);            break;
648648 
649649      /* --- the following bits of info are returned as NULL-terminated strings --- */
r6677r6678
663663{
664664   switch (state)
665665   {
666      /* --- the following bits of info are returned as 64-bit signed integers --- */
667      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1571_t);                           break;
668      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1571_config);                        break;
669      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
670 
671666      /* --- the following bits of info are returned as pointers --- */
672667      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1571);                     break;
673668      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1571);         break;
674669 
675      /* --- the following bits of info are returned as pointers to data or functions --- */
676      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1571);                  break;
677      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
678      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1571);                  break;
679      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1571);            break;
680      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1571);            break;
681 
682670      /* --- the following bits of info are returned as NULL-terminated strings --- */
683671      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 1571");                     break;
684      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore 1571");                     break;
685      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
686      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
687      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
672 
673      default:                              DEVICE_GET_INFO_CALL(c1570);                        break;
688674   }
689675}
690676 
r6677r6678
696682{
697683   switch (state)
698684   {
699      /* --- the following bits of info are returned as 64-bit signed integers --- */
700      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(c1571_t);                           break;
701      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(c1571_config);                        break;
702      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;                     break;
703 
704685      /* --- the following bits of info are returned as pointers --- */
705      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1571);                     break;
706      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1571);         break;
686      case DEVINFO_PTR_ROM_REGION:               info->romregion = ROM_NAME(c1571cr);                  break;
687      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = MACHINE_DRIVER_NAME(c1571cr);      break;
707688 
708      /* --- the following bits of info are returned as pointers to data or functions --- */
709      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(c1571);                  break;
710      case DEVINFO_FCT_STOP:                     /* Nothing */                                    break;
711      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(c1571);                  break;
712      case DEVINFO_FCT_CBM_IEC_ATN:               info->f = (genf *)CBM_IEC_ATN_NAME(c1571);            break;
713      case DEVINFO_FCT_CBM_IEC_RESET:               info->f = (genf *)CBM_IEC_RESET_NAME(c1571);            break;
714 
715689      /* --- the following bits of info are returned as NULL-terminated strings --- */
716690      case DEVINFO_STR_NAME:                     strcpy(info->s, "Commodore 1571CR");                  break;
717      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Commodore 1571");                     break;
718      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                              break;
719      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                           break;
720      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright the MESS Team");             break;
691 
692      default:                              DEVICE_GET_INFO_CALL(c1570);                        break;
721693   }
722694}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team