src/mess/machine/sym1.c
| r3427 | r3428 | |
| 20 | 20 | #include "machine/74145.h" |
| 21 | 21 | #include "sound/speaker.h" |
| 22 | 22 | |
| 23 | | #include "devices/cartslot.h" |
| 24 | 23 | |
| 25 | | |
| 26 | 24 | #define LED_REFRESH_DELAY ATTOTIME_IN_USEC(70) |
| 27 | 25 | |
| 28 | 26 | |
| r3427 | r3428 | |
| 307 | 305 | 0xf800, 0xffff, 0, 0, SMH_BANK1, SMH_NOP); |
| 308 | 306 | memory_set_bankptr(1, sym1_monitor + 0x800); |
| 309 | 307 | } |
| 310 | | |
| 311 | | |
| 312 | | /****************************************************************************** |
| 313 | | Cartridge Support |
| 314 | | ******************************************************************************/ |
| 315 | | |
| 316 | | static CBM_ROM sym1_cbm_cart = { 0 }; |
| 317 | | |
| 318 | | static DEVICE_IMAGE_LOAD(sym_cart) |
| 319 | | { |
| 320 | | int size = image_length(image), test; |
| 321 | | const char *filetype; |
| 322 | | int address = 0; |
| 323 | | |
| 324 | | filetype = image_filetype(image); |
| 325 | | |
| 326 | | /* Assign loading address according to extension */ |
| 327 | | if (!mame_stricmp (filetype, "60")) |
| 328 | | address = 0x6000; |
| 329 | | else if (!mame_stricmp (filetype, "c0")) |
| 330 | | address = 0xc000; |
| 331 | | else // which address for .0080 files?!? |
| 332 | | ; |
| 333 | | |
| 334 | | logerror("Loading cart %s at %.4x size:%.4x\n", image_filename(image), address, size); |
| 335 | | |
| 336 | | /* Does cart contain any data? */ |
| 337 | | sym1_cbm_cart.chip = (UINT8*) image_malloc(image, size); |
| 338 | | if (!sym1_cbm_cart.chip) |
| 339 | | return INIT_FAIL; |
| 340 | | |
| 341 | | /* Store data, address & size */ |
| 342 | | sym1_cbm_cart.addr = address; |
| 343 | | sym1_cbm_cart.size = size; |
| 344 | | test = image_fread(image, sym1_cbm_cart.chip, sym1_cbm_cart.size); |
| 345 | | |
| 346 | | if (test != sym1_cbm_cart.size) |
| 347 | | return INIT_FAIL; |
| 348 | | |
| 349 | | /* Finally load the cart */ |
| 350 | | // memcpy(/* where? base + sym1_cbm_cart.addr */, sym1_cbm_cart.chip, sym1_cbm_cart.size); |
| 351 | | |
| 352 | | return INIT_PASS; |
| 353 | | } |
| 354 | | |
| 355 | | void sym1_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 356 | | { |
| 357 | | switch(state) |
| 358 | | { |
| 359 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 360 | | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; |
| 361 | | |
| 362 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 363 | | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "60,0080,c0"); break; |
| 364 | | |
| 365 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 366 | | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(sym_cart); break; |
| 367 | | |
| 368 | | default: cartslot_device_getinfo(devclass, state, info); break; |
| 369 | | } |
| 370 | | } |
src/mess/drivers/pet.c
| r3427 | r3428 | |
| 345 | 345 | |
| 346 | 346 | [TO DO] |
| 347 | 347 | |
| 348 | * Verify if pre-CRTC models had differences between NTSC & PAL systems. |
| 349 | If no differences arise we can merge back the following sets: |
| 350 | + cbm30 (same as pet2001n) & cbm30b (same as pet2001b) |
| 351 | + cbm40o (same as pet40on) & cbm40ob (same as pet40ob) |
| 352 | |
| 348 | 353 | * Emulate SuperPET / SP9000 / MMF9000 and their differences |
| 349 | 354 | |
| 350 | 355 | * Emulate CBM 8296 & 8296D (basically only a placeholder now) |
| r3427 | r3428 | |
| 984 | 989 | ROM_LOAD( "901640-01.ub3", 0x0000, 0x1000, CRC(ee8229c4) SHA1(bf346f11595a3e65e55d6aeeaa2c0cec807b66c7) ) |
| 985 | 990 | ROM_END |
| 986 | 991 | |
| 987 | | #define rom_mmf9000 rom_superpet |
| 988 | 992 | #define rom_sp9000 rom_superpet |
| 989 | 993 | |
| 990 | 994 | |
| r3427 | r3428 | |
| 1091 | 1095 | CONFIG_RAM_DEFAULT(8 * 1024) |
| 1092 | 1096 | SYSTEM_CONFIG_END |
| 1093 | 1097 | |
| 1094 | | /* Later PET 2001 - Basic "2" - RAM: 8k, 16k, 32k */ |
| 1098 | /* Later PET 2001 - Basic 2 - RAM: 8k, 16k, 32k */ |
| 1095 | 1099 | static SYSTEM_CONFIG_START( pet2 ) |
| 1096 | 1100 | CONFIG_DEVICE(pet_cartslot_getinfo) |
| 1097 | 1101 | CONFIG_DEVICE(cbmfloppy_device_getinfo) |
| r3427 | r3428 | |
| 1133 | 1137 | COMP(1979, cbm30, 0, pet2001, pet, pet, pet, pet2, "Commodore Business Machines Co.", "CBM 30xx", GAME_NO_SOUND) |
| 1134 | 1138 | COMP(1979, cbm30b, 0, pet2001, pet, petb, petb, pet2, "Commodore Business Machines Co.", "CBM 30xx (Business keyboard)", GAME_NO_SOUND) |
| 1135 | 1139 | COMP(1979, cbm30nor, 0, pet2001, pet, petb, petb, pet2, "Commodore Business Machines Co.", "CBM 30xx (Norway, Business keyboard)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1140 | |
| 1136 | 1141 | /* So called, THIN-40 */ |
| 1137 | 1142 | COMP(1980, pet40on, 0, pet2001, pet, pet, pet, pet2, "Commodore Business Machines Co.", "PET 40xx (Basic 4, no CRTC, Normal keyboard)", GAME_NO_SOUND) |
| 1138 | 1143 | COMP(1980, pet40ob, 0, pet2001, pet, petb, petb, pet2, "Commodore Business Machines Co.", "PET 40xx (Basic 4, no CRTC, Business keyboard)", GAME_NO_SOUND) |
| r3427 | r3428 | |
| 1144 | 1149 | COMP(1981, cbm80ger, 0, pet2001, pet80pal, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "CBM 80xx (Germany, Basic 4, CRTC 50Hz, 80 columns)", GAME_NO_SOUND) |
| 1145 | 1150 | COMP(1981, cbm80hun, 0, pet2001, pet80pal, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "CBM 80xx (Hungary, Basic 4, CRTC 50Hz, 80 columns)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1146 | 1151 | COMP(1981, cbm80swe, 0, pet2001, pet80pal, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "CBM 80xx (Sweden, Basic 4, CRTC 50Hz, 80 columns)", GAME_NO_SOUND) |
| 1152 | |
| 1147 | 1153 | /* So called, FAT-40 */ |
| 1148 | 1154 | COMP(1981, pet40b, 0, pet2001, pet80, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "PET 40xx (Basic 4, CRTC 60Hz, 80 columns)", GAME_NO_SOUND) |
| 1149 | | COMP(1981, pet40n, 0, pet2001, pet40, pet, pet40, pet4o, "Commodore Business Machines Co.", "PET 40xx (Basic 4, CRTC 60Hz, 40 columns)", GAME_NO_SOUND) |
| 1155 | COMP(1981, pet40n, 0, pet2001, pet40, pet, pet40, pet4o, "Commodore Business Machines Co.", "PET 40xx (Basic 4, CRTC 60Hz, 40 columns)", GAME_NO_SOUND) |
| 1150 | 1156 | COMP(1981, cbm40b, 0, pet2001, pet80pal, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "CBM 40xx (Basic 4, CRTC 50Hz, 80 columns)", GAME_NO_SOUND) |
| 1151 | | COMP(1981, cbm40n, 0, pet2001, pet40pal, pet, pet40, pet4o, "Commodore Business Machines Co.", "CBM 40xx (Basic 4, CRTC 50Hz, 40 columns)", GAME_NO_SOUND) |
| 1157 | COMP(1981, cbm40n, 0, pet2001, pet40pal, pet, pet40, pet4o, "Commodore Business Machines Co.", "CBM 40xx (Basic 4, CRTC 50Hz, 40 columns)", GAME_NO_SOUND) |
| 1152 | 1158 | |
| 1153 | 1159 | COMP(1981, superpet, 0, pet2001, superpet, superpet, superpet, pet4, "Commodore Business Machines Co.", "SuperPET (CRTC 50Hz)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1154 | | COMP(1981, sp9000, 0, pet2001, superpet, superpet, superpet, pet4, "Commodore Business Machines Co.", "CBM SP9000 (CRTC 50Hz)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1155 | | COMP(1981, mmf9000, 0, pet2001, superpet, superpet, superpet, pet4, "Commodore Business Machines Co.", "MicroMainFrame 9000 (CRTC 50Hz)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1160 | COMP(1981, sp9000, 0, pet2001, superpet, superpet, superpet, pet4, "Commodore Business Machines Co.", "CBM SP9000 / MicroMainFrame 9000 (CRTC 50Hz)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1156 | 1161 | COMP(198?, mmf9000s, 0, pet2001, superpet, superpet, superpet, pet4, "Commodore Business Machines Co.", "MicroMainFrame 9000 (Sweden, CRTC 50Hz)", GAME_NO_SOUND | GAME_NOT_WORKING) |
| 1157 | 1162 | |
| 1158 | 1163 | COMP(1984, cbm8296, 0, pet2001, pet80pal, cbm8096, pet80, pet4, "Commodore Business Machines Co.", "CBM 8296 (Basic 4, CRTC 50Hz, 80 columns)", GAME_NO_SOUND | GAME_NOT_WORKING) |