src/mess/machine/sms.c
| r6103 | r6104 | |
| 1197 | 1197 | |
| 1198 | 1198 | if (strcmp(image->tag,"cart2") == 0) |
| 1199 | 1199 | index = 1; |
| 1200 | | |
| 1201 | 1200 | if (strcmp(image->tag,"cart3") == 0) |
| 1202 | 1201 | index = 2; |
| 1203 | | |
| 1204 | 1202 | if (strcmp(image->tag,"cart4") == 0) |
| 1205 | 1203 | index = 3; |
| 1206 | | |
| 1207 | 1204 | if (strcmp(image->tag,"cart5") == 0) |
| 1208 | 1205 | index = 4; |
| 1206 | if (strcmp(image->tag,"cart6") == 0) |
| 1207 | index = 5; |
| 1208 | if (strcmp(image->tag,"cart7") == 0) |
| 1209 | index = 6; |
| 1210 | if (strcmp(image->tag,"cart8") == 0) |
| 1211 | index = 7; |
| 1212 | if (strcmp(image->tag,"cart9") == 0) |
| 1213 | index = 8; |
| 1214 | if (strcmp(image->tag,"cart10") == 0) |
| 1215 | index = 9; |
| 1216 | if (strcmp(image->tag,"cart11") == 0) |
| 1217 | index = 10; |
| 1218 | if (strcmp(image->tag,"cart12") == 0) |
| 1219 | index = 11; |
| 1220 | if (strcmp(image->tag,"cart13") == 0) |
| 1221 | index = 12; |
| 1222 | if (strcmp(image->tag,"cart14") == 0) |
| 1223 | index = 13; |
| 1224 | if (strcmp(image->tag,"cart15") == 0) |
| 1225 | index = 14; |
| 1226 | if (strcmp(image->tag,"cart16") == 0) |
| 1227 | index = 15; |
| 1209 | 1228 | |
| 1210 | 1229 | /* Check for 512-byte header */ |
| 1211 | 1230 | if ((size / 512) & 1) |
| r6103 | r6104 | |
| 1494 | 1513 | |
| 1495 | 1514 | void sms_store_int_callback( running_machine *machine, int state ) |
| 1496 | 1515 | { |
| 1497 | | cputag_set_input_line(machine, "maincpu", sms_state.store_control & 0x01 ? 1 : 0, state); |
| 1516 | cputag_set_input_line(machine, sms_state.store_control & 0x01 ? "control" : "maincpu", 0, state); |
| 1498 | 1517 | } |
| 1499 | 1518 | |
| 1500 | 1519 | |
| 1501 | 1520 | static void sms_set_zero_flag( void ) |
| 1502 | 1521 | { |
| 1503 | | sms_state.is_gamegear = 0; |
| 1522 | sms_state.is_gamegear = 0; |
| 1504 | 1523 | sms_state.is_region_japan = 0; |
| 1505 | 1524 | sms_state.has_bios_0400 = 0; |
| 1506 | 1525 | sms_state.has_bios_2000 = 0; |