src/mess/machine/c1541.c
| r6677 | r6678 | |
| 1074 | 1074 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(c1541); break; |
| 1075 | 1075 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 1076 | 1076 | 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; |
| 1078 | 1078 | case DEVINFO_FCT_CBM_IEC_RESET: info->f = (genf *)CBM_IEC_RESET_NAME(c1541); break; |
| 1079 | 1079 | |
| 1080 | 1080 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| r6677 | r6678 | |
| 1094 | 1094 | { |
| 1095 | 1095 | switch (state) |
| 1096 | 1096 | { |
| 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 | | |
| 1102 | 1097 | /* --- the following bits of info are returned as pointers --- */ |
| 1103 | 1098 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c1541); break; |
| 1104 | 1099 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c1541); break; |
| 1105 | 1100 | |
| 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 | | |
| 1113 | 1101 | /* --- 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; |
| 1119 | 1105 | } |
| 1120 | 1106 | } |
| 1121 | 1107 | |
| r6677 | r6678 | |
| 1127 | 1113 | { |
| 1128 | 1114 | switch (state) |
| 1129 | 1115 | { |
| 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 | | |
| 1135 | 1116 | /* --- the following bits of info are returned as pointers --- */ |
| 1136 | 1117 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c1541c); break; |
| 1137 | 1118 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c1541c); break; |
| 1138 | 1119 | |
| 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 | | |
| 1146 | 1120 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1147 | 1121 | 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; |
| 1152 | 1124 | } |
| 1153 | 1125 | } |
| 1154 | 1126 | |
| r6677 | r6678 | |
| 1160 | 1132 | { |
| 1161 | 1133 | switch (state) |
| 1162 | 1134 | { |
| 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 | | |
| 1168 | 1135 | /* --- the following bits of info are returned as pointers --- */ |
| 1169 | 1136 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c1541ii); break; |
| 1170 | 1137 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c1541ii); break; |
| 1171 | 1138 | |
| 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 | | |
| 1179 | 1139 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1180 | 1140 | 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; |
| 1185 | 1143 | } |
| 1186 | 1144 | } |
| 1187 | 1145 | |
| r6677 | r6678 | |
| 1193 | 1151 | { |
| 1194 | 1152 | switch (state) |
| 1195 | 1153 | { |
| 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 | | |
| 1201 | 1154 | /* --- the following bits of info are returned as pointers --- */ |
| 1202 | 1155 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c2031); break; |
| 1203 | 1156 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c2031); break; |
| 1204 | 1157 | |
| 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 | | |
| 1210 | 1158 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1211 | 1159 | 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; |
| 1216 | 1162 | } |
| 1217 | 1163 | } |
src/mess/machine/c1571.c
| r6677 | r6678 | |
| 643 | 643 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(c1571); break;
|
| 644 | 644 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 645 | 645 | 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;
|
| 647 | 647 | case DEVINFO_FCT_CBM_IEC_RESET: info->f = (genf *)CBM_IEC_RESET_NAME(c1571); break;
|
| 648 | 648 | |
| 649 | 649 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| r6677 | r6678 | |
| 663 | 663 | {
|
| 664 | 664 | switch (state)
|
| 665 | 665 | {
|
| 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 | | |
| 671 | 666 | /* --- the following bits of info are returned as pointers --- */
|
| 672 | 667 | case DEVINFO_PTR_ROM_REGION: info->romregion = ROM_NAME(c1571); break;
|
| 673 | 668 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = MACHINE_DRIVER_NAME(c1571); break;
|
| 674 | 669 | |
| 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 | | |
| 682 | 670 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 683 | 671 | 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;
|
| 688 | 674 | }
|
| 689 | 675 | }
|
| 690 | 676 | |
| r6677 | r6678 | |
| 696 | 682 | {
|
| 697 | 683 | switch (state)
|
| 698 | 684 | {
|
| 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 | | |
| 704 | 685 | /* --- 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;
|
| 707 | 688 | |
| 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 | | |
| 715 | 689 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 716 | 690 | 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;
|
| 721 | 693 | }
|
| 722 | 694 | }
|