| Previous | 15994 Revisions | Next |
| r10322 Sunday 6th February, 2011 at 20:45:25 UTC by Fabio Priuli |
|---|
| [A800] cart handling clean up, part II: * added preliminary handling for various mappers to a400 & a800 (it works if you load by softlist, but it should work also if you load by fullpath a cart which has a correct CART header) * added the a800 softlist to XL/XE systems too (only plain 8K & 16K carts are allowed to be loaded: other types will require more work on the memory map of these computers) |
| [src/mess/drivers] | atari.c |
| [src/mess/machine] | ataricrt.c |
| r10321 | r10322 | |
|---|---|---|
| 10 | 10 | #include "ataridev.h" |
| 11 | 11 | #include "machine/ram.h" |
| 12 | 12 | |
| 13 | #define LEFT_CARTSLOT_MOUNTED 1 | |
| 14 | #define RIGHT_CARTSLOT_MOUNTED 2 | |
| 15 | ||
| 16 | /* PCB */ | |
| 17 | enum | |
| 18 | { | |
| 19 | A800_UNKNOWN = 0, | |
| 20 | A800_4K, A800_8K, A800_12K, A800_16K, | |
| 21 | A800_RIGHT_4K, A800_RIGHT_8K, | |
| 22 | OSS_034M, OSS_M091, PHOENIX_8K, XEGS_32K, | |
| 23 | BBSB, DIAMOND_64K, WILLIAMS_64K, EXPRESS_64, | |
| 24 | SPARTADOS_X | |
| 25 | }; | |
| 26 | ||
| 13 | 27 | static int a800_cart_loaded = 0; |
| 14 | static int a800_cart_is_16k = 0; | |
| 15 | 28 | static int atari = 0; |
| 29 | static int a800_cart_type = A800_UNKNOWN; | |
| 16 | 30 | |
| 17 | #define LEFT_CARTSLOT_MOUNTED 1 | |
| 18 | #define RIGHT_CARTSLOT_MOUNTED 2 | |
| 19 | ||
| 20 | 31 | /************************************* |
| 21 | 32 | * |
| 22 | 33 | * Generic code |
| r10321 | r10322 | |
| 40 | 51 | { |
| 41 | 52 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x9fff, 0, 0, "8000"); |
| 42 | 53 | memory_set_bankptr(machine, "8000", machine->region("rslot")->base()); |
| 43 | memory_n | |
| 54 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x9fff, 0, 0); | |
| 44 | 55 | } |
| 45 | else | |
| 56 | else if (a800_cart_type != BBSB) | |
| 46 | 57 | { |
| 47 | 58 | ram_top = MIN(ram_get_size(machine->device(RAM_TAG)), 0xa000) - 1; |
| 48 | 59 | if (ram_top > 0x8000) |
| r10321 | r10322 | |
| 55 | 66 | // take care of 0xa000-0xbfff: is there anything in the left slot? |
| 56 | 67 | if (cart_mounted & LEFT_CARTSLOT_MOUNTED) |
| 57 | 68 | { |
| 69 | // FIXME: this is an hack to keep XL working until we clean up its memory map as well! | |
| 58 | 70 | if (atari == ATARI_800XL) |
| 59 | 71 | { |
| 60 | // FIXME: this is an hack to keep XL working until we clean up its memory map as well! | |
| 61 | if (a800_cart_is_16k) | |
| 72 | if (a800_cart_type == A800_16K) | |
| 62 | 73 | { |
| 63 | 74 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x9fff, 0, 0, "8000"); |
| 64 | 75 | memory_set_bankptr(machine, "8000", machine->region("lslot")->base()); |
| 65 | memory_n | |
| 76 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x9fff, 0, 0); | |
| 66 | 77 | |
| 67 | 78 | memcpy(machine->region("maincpu")->base() + 0x10000, machine->region("lslot")->base() + 0x2000, 0x2000); |
| 68 | 79 | } |
| 80 | else if (a800_cart_type == A800_8K) | |
| 81 | memcpy(machine->region("maincpu")->base() + 0x10000, machine->region("lslot")->base(), 0x2000); | |
| 69 | 82 | else |
| 70 | | |
| 83 | f | |
| 71 | 84 | } |
| 72 | else if (a800_cart_ | |
| 85 | else if (a800_cart_type == A800_16K) | |
| 73 | 86 | { |
| 74 | 87 | memory_set_bankptr(machine, "8000", machine->region("lslot")->base()); |
| 75 | 88 | memory_set_bankptr(machine, "a000", machine->region("lslot")->base() + 0x2000); |
| 76 | memory_n | |
| 89 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0); | |
| 77 | 90 | } |
| 91 | else if (a800_cart_type == BBSB) | |
| 92 | { | |
| 93 | // this requires separate banking in 0x8000 & 0x9000! | |
| 94 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x8fff, 0, 0, "8000"); | |
| 95 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x9000, 0x9fff, 0, 0, "9000"); | |
| 96 | memory_set_bankptr(machine, "8000", machine->region("lslot")->base() + 0x0000); | |
| 97 | memory_set_bankptr(machine, "9000", machine->region("lslot")->base() + 0x4000); | |
| 98 | memory_set_bankptr(machine, "a000", machine->region("lslot")->base() + 0x8000); | |
| 99 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xbfff, 0, 0); | |
| 100 | } | |
| 101 | else if (a800_cart_type == OSS_034M) | |
| 102 | { | |
| 103 | // this requires separate banking in 0xa000 & 0xb000! | |
| 104 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xafff, 0, 0, "a000"); | |
| 105 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xb000, 0xbfff, 0, 0, "b000"); | |
| 106 | memory_set_bankptr(machine, "b000", machine->region("lslot")->base() + 0x3000); | |
| 107 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xbfff, 0, 0); | |
| 108 | } | |
| 109 | else if (a800_cart_type == OSS_M091) | |
| 110 | { | |
| 111 | // this requires separate banking in 0xa000 & 0xb000! | |
| 112 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xafff, 0, 0, "a000"); | |
| 113 | memory_install_read_bank(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xb000, 0xbfff, 0, 0, "b000"); | |
| 114 | memory_set_bankptr(machine, "b000", machine->region("lslot")->base()); | |
| 115 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xbfff, 0, 0); | |
| 116 | } | |
| 117 | else if (a800_cart_type == XEGS_32K) | |
| 118 | { | |
| 119 | memory_set_bankptr(machine, "8000", machine->region("lslot")->base()); | |
| 120 | memory_set_bankptr(machine, "a000", machine->region("lslot")->base() + 0x6000); | |
| 121 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0); | |
| 122 | } | |
| 78 | 123 | else |
| 79 | 124 | { |
| 80 | 125 | memory_set_bankptr(machine, "a000", machine->region("lslot")->base()); |
| 81 | memory_n | |
| 126 | memory_unmap_write(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xa000, 0xbfff, 0, 0); | |
| 82 | 127 | } |
| 83 | 128 | } |
| 84 | 129 | } |
| r10321 | r10322 | |
| 123 | 168 | ms_atari_machine_start(machine, ATARI_800, TRUE); |
| 124 | 169 | } |
| 125 | 170 | |
| 171 | static WRITE8_HANDLER( x32_bank_w ) | |
| 172 | { | |
| 173 | // printf("written %x\n", data); | |
| 174 | int bank = data & 0x03; | |
| 175 | memory_set_bankptr(space->machine, "8000", space->machine->region("lslot")->base() + bank * 0x2000); | |
| 176 | } | |
| 126 | 177 | |
| 127 | /* PCB */ | |
| 128 | enum | |
| 178 | static WRITE8_HANDLER( w64_bank_w ) | |
| 129 | 179 | { |
| 130 | A800_UNKNOWN = 0, | |
| 131 | A800_4K, A800_8K, A800_12K, A800_16K, | |
| 132 | A800_RIGHT_4K, A800_RIGHT_8K, | |
| 133 | OSS_034M, OSS_M091, PHOENIX_8K, XEGS_32K, | |
| 134 | BBSB, DIAMOND_64K, WILLIAMS_64K, EXPRESS_64, | |
| 135 | SPARTADOS_X | |
| 136 | }; | |
| 180 | // printf("write to %x\n", offset); | |
| 137 | 181 | |
| 182 | if (offset < 8) | |
| 183 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + offset * 0x2000); | |
| 184 | else | |
| 185 | memory_set_bankptr(space->machine, "a000", space->machine->region("maincpu")->base()); | |
| 186 | // FIXME: writes to 0x8-0xf should disable the cart | |
| 187 | } | |
| 188 | ||
| 189 | // this covers Express 64, Diamond 64 and SpartaDOS (same bankswitch, but at different addresses) | |
| 190 | static WRITE8_HANDLER( ex64_bank_w ) | |
| 191 | { | |
| 192 | // printf("write to %x\n", offset); | |
| 193 | ||
| 194 | if (offset < 8) | |
| 195 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + (7 - offset) * 0x2000); | |
| 196 | else | |
| 197 | memory_set_bankptr(space->machine, "a000", space->machine->region("maincpu")->base()); | |
| 198 | // FIXME: writes to 0x8-0xf should disable the cart | |
| 199 | } | |
| 200 | ||
| 201 | static WRITE8_HANDLER( bbsb_bankl_w ) | |
| 202 | { | |
| 203 | // printf("write to %x\n", 0x8000 + offset); | |
| 204 | if (offset >= 0xff6 && offset <= 0xff9) | |
| 205 | memory_set_bankptr(space->machine, "8000", space->machine->region("lslot")->base() + 0x0000 + (offset - 0xff6) * 0x1000); | |
| 206 | } | |
| 207 | ||
| 208 | static WRITE8_HANDLER( bbsb_bankh_w ) | |
| 209 | { | |
| 210 | // printf("write to %x\n", 0x9000 + offset); | |
| 211 | if (offset >= 0xff6 && offset <= 0xff9) | |
| 212 | memory_set_bankptr(space->machine, "9000", space->machine->region("lslot")->base() + 0x4000 + (offset - 0xff6) * 0x1000); | |
| 213 | } | |
| 214 | ||
| 215 | static WRITE8_HANDLER( oss_034m_w ) | |
| 216 | { | |
| 217 | switch (offset & 0x0f) | |
| 218 | { | |
| 219 | case 0: | |
| 220 | case 1: | |
| 221 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base()); | |
| 222 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base() + 0x3000); | |
| 223 | break; | |
| 224 | case 2: | |
| 225 | case 6: | |
| 226 | // docs says this should put 0xff in the 0xa000 bank -> let's point to the end of the cart | |
| 227 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x4000); | |
| 228 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base() + 0x3000); | |
| 229 | break; | |
| 230 | case 3: | |
| 231 | case 7: | |
| 232 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x1000); | |
| 233 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base() + 0x3000); | |
| 234 | break; | |
| 235 | case 4: | |
| 236 | case 5: | |
| 237 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x2000); | |
| 238 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base() + 0x3000); | |
| 239 | break; | |
| 240 | default: | |
| 241 | memory_set_bankptr(space->machine, "a000", space->machine->region("maincpu")->base() + 0xa000); | |
| 242 | memory_set_bankptr(space->machine, "b000", space->machine->region("maincpu")->base() + 0xb000); | |
| 243 | break; | |
| 244 | } | |
| 245 | } | |
| 246 | ||
| 247 | static WRITE8_HANDLER( oss_m091_w ) | |
| 248 | { | |
| 249 | switch (offset & 0x09) | |
| 250 | { | |
| 251 | case 0: | |
| 252 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x1000); | |
| 253 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base()); | |
| 254 | break; | |
| 255 | case 1: | |
| 256 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x3000); | |
| 257 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base()); | |
| 258 | break; | |
| 259 | case 8: | |
| 260 | memory_set_bankptr(space->machine, "a000", space->machine->region("maincpu")->base() + 0xa000); | |
| 261 | memory_set_bankptr(space->machine, "b000", space->machine->region("maincpu")->base() + 0xb000); | |
| 262 | break; | |
| 263 | case 9: | |
| 264 | memory_set_bankptr(space->machine, "a000", space->machine->region("lslot")->base() + 0x2000); | |
| 265 | memory_set_bankptr(space->machine, "b000", space->machine->region("lslot")->base()); | |
| 266 | break; | |
| 267 | } | |
| 268 | } | |
| 269 | ||
| 270 | #if 0 | |
| 271 | static int bbsb_bankl = 0; | |
| 272 | static int bbsb_bankh = 0; | |
| 273 | ||
| 274 | static WRITE8_HANDLER( bbsb_bankl_w ) | |
| 275 | { | |
| 276 | bbsb_bankl = offset; // 0,1,2,3 | |
| 277 | } | |
| 278 | ||
| 279 | static WRITE8_HANDLER( bbsb_bankh_w ) | |
| 280 | { | |
| 281 | bbsb_bankh = offset; // 4,5,6,7 | |
| 282 | } | |
| 283 | ||
| 284 | static READ8_HANDLER( bbsb_bankl_r ) | |
| 285 | { | |
| 286 | // return data from the selected bank (0,1,2,3) | |
| 287 | UINT8 *mem = space->machine->region("lslot")->base(); | |
| 288 | return &mem[0x0000 + bbsb_bankl * 0x1000]; | |
| 289 | } | |
| 290 | ||
| 291 | static READ8_HANDLER( bbsb_bankh_r ) | |
| 292 | { | |
| 293 | // return data from the selected bank (4,5,6,7) | |
| 294 | UINT8 *mem = space->machine->region("lslot")->base(); | |
| 295 | return &mem[0x4000 + bbsb_bankh * 0x1000]; | |
| 296 | } | |
| 297 | #endif | |
| 298 | ||
| 138 | 299 | typedef struct _a800_pcb a800_pcb; |
| 139 | 300 | struct _a800_pcb |
| 140 | 301 | { |
| r10321 | r10322 | |
| 146 | 307 | // WARNING: most of these are still unsupported by the driver |
| 147 | 308 | static const a800_pcb pcb_list[] = |
| 148 | 309 | { |
| 149 | {"standard 4k", A800_ | |
| 310 | {"standard 4k", A800_8K}, | |
| 150 | 311 | {"standard 8k", A800_8K}, |
| 151 | {"standard 12k", A800_1 | |
| 312 | {"standard 12k", A800_16K}, | |
| 152 | 313 | {"standard 16k", A800_16K}, |
| 153 | 314 | {"right slot 4k", A800_RIGHT_4K}, |
| 154 | 315 | {"right slot 8k", A800_RIGHT_8K}, |
| r10321 | r10322 | |
| 189 | 350 | case A800_8K: |
| 190 | 351 | case A800_16K: |
| 191 | 352 | case A800_RIGHT_8K: |
| 353 | case PHOENIX_8K: // as normal 8k cart, but it can be disabled by writing to 0xd500-0xdfff | |
| 354 | break; | |
| 355 | case XEGS_32K: | |
| 356 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd500, 0xd5ff, 0, 0, x32_bank_w); | |
| 357 | break; | |
| 192 | 358 | case OSS_034M: |
| 359 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd500, 0xd5ff, 0, 0, oss_034m_w); | |
| 360 | break; | |
| 193 | 361 | case OSS_M091: |
| 194 | case PHOENIX_8K: | |
| 195 | case XEGS_32K: | |
| 362 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd500, 0xd5ff, 0, 0, oss_m091_w); | |
| 363 | break; | |
| 196 | 364 | case BBSB: |
| 365 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x8000, 0x8fff, 0, 0, bbsb_bankl_w); | |
| 366 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x9000, 0x9fff, 0, 0, bbsb_bankh_w); | |
| 367 | break; | |
| 368 | case WILLIAMS_64K: | |
| 369 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd500, 0xd50f, 0, 0, w64_bank_w); | |
| 370 | break; | |
| 197 | 371 | case DIAMOND_64K: |
| 198 | case WILLIAMS_64K: | |
| 372 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd5d0, 0xd5df, 0, 0, ex64_bank_w); | |
| 373 | break; | |
| 199 | 374 | case EXPRESS_64: |
| 375 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd570, 0xd57f, 0, 0, ex64_bank_w); | |
| 376 | break; | |
| 200 | 377 | case SPARTADOS_X: |
| 378 | memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xd5e0, 0xd5ef, 0, 0, ex64_bank_w); | |
| 379 | break; | |
| 201 | 380 | default: |
| 202 | 381 | break; |
| 203 | 382 | } |
| r10321 | r10322 | |
| 290 | 469 | else |
| 291 | 470 | type = A800_8K; |
| 292 | 471 | } |
| 293 | ||
| 294 | if ((strcmp(image.device().tag(),"cart2") == 0) && (type != A800_RIGHT_8K)) | |
| 295 | fatalerror("You cannot load this image '%s' in the right slot", image.filename()); | |
| 296 | 472 | } |
| 297 | 473 | else |
| 298 | 474 | { |
| r10321 | r10322 | |
| 314 | 490 | break; |
| 315 | 491 | } |
| 316 | 492 | } |
| 493 | ||
| 494 | if ((strcmp(image.device().tag(),"cart2") == 0) && (type != A800_RIGHT_8K)) | |
| 495 | fatalerror("You cannot load this image '%s' in the right slot", image.filename()); | |
| 496 | ||
| 317 | 497 | return type; |
| 318 | 498 | } |
| 319 | 499 | |
| 320 | 500 | DEVICE_IMAGE_LOAD( a800_cart ) |
| 321 | 501 | { |
| 322 | int cart_type; | |
| 323 | 502 | UINT32 size, start = 0; |
| 324 | 503 | |
| 325 | 504 | a800_cart_loaded = a800_cart_loaded & ~LEFT_CARTSLOT_MOUNTED; |
| 326 | a800_cart_is_16k = 0; | |
| 327 | cart_type = a800_check_cart_type(image); | |
| 505 | a800_cart_type = a800_check_cart_type(image); | |
| 328 | 506 | |
| 329 | a800_setup_mappers(image.device().machine, cart_type); | |
| 507 | a800_setup_mappers(image.device().machine, a800_cart_type); | |
| 330 | 508 | |
| 331 | 509 | if (image.software_entry() == NULL) |
| 332 | 510 | { |
| r10321 | r10322 | |
| 346 | 524 | } |
| 347 | 525 | |
| 348 | 526 | a800_cart_loaded |= (size > 0x0000) ? 1 : 0; |
| 349 | a800_cart_is_16k = (size > 0x2000) ? 1 : 0; | |
| 350 | 527 | |
| 351 | logerror("%s loaded left cartridge '%s' size % | |
| 528 | logerror("%s loaded left cartridge '%s' size %dK\n", image.device().machine->gamedrv->name, image.filename(), | |
| 352 | 529 | return IMAGE_INIT_PASS; |
| 353 | 530 | } |
| 354 | 531 | |
| 355 | 532 | DEVICE_IMAGE_LOAD( a800_cart_right ) |
| 356 | 533 | { |
| 357 | int cart_type; | |
| 358 | 534 | UINT32 size, start = 0; |
| 359 | 535 | |
| 360 | 536 | a800_cart_loaded = a800_cart_loaded & ~RIGHT_CARTSLOT_MOUNTED; |
| 361 | cart_type = a800_check_cart_type(image); | |
| 537 | a800_cart_type = a800_check_cart_type(image); | |
| 362 | 538 | |
| 363 | a800_setup_mappers(image.device().machine, cart_type); | |
| 539 | a800_setup_mappers(image.device().machine, a800_cart_type); | |
| 364 | 540 | |
| 365 | 541 | if (image.software_entry() == NULL) |
| 366 | 542 | { |
| r10321 | r10322 | |
| 387 | 563 | |
| 388 | 564 | DEVICE_IMAGE_UNLOAD( a800_cart ) |
| 389 | 565 | { |
| 390 | a800_cart_is_16k = 0; | |
| 391 | 566 | a800_cart_loaded = a800_cart_loaded & ~LEFT_CARTSLOT_MOUNTED; |
| 567 | a800_cart_type = A800_UNKNOWN; | |
| 392 | 568 | a800_setbank(image.device().machine, a800_cart_loaded); |
| 393 | 569 | } |
| 394 | 570 | |
| 395 | 571 | DEVICE_IMAGE_UNLOAD( a800_cart_right ) |
| 396 | 572 | { |
| 397 | 573 | a800_cart_loaded = a800_cart_loaded & ~RIGHT_CARTSLOT_MOUNTED; |
| 574 | a800_cart_type = A800_UNKNOWN; | |
| 398 | 575 | a800_setbank(image.device().machine, a800_cart_loaded); |
| 399 | 576 | } |
| 400 | 577 |
| r10321 | r10322 | |
|---|---|---|
| 1170 | 1170 | |
| 1171 | 1171 | MCFG_FRAGMENT_ADD(a400_cartslot) |
| 1172 | 1172 | |
| 1173 | /* software lists */ | |
| 1174 | MCFG_SOFTWARE_LIST_ADD("cart_list","a800") | |
| 1175 | ||
| 1173 | 1176 | /* internal ram */ |
| 1174 | 1177 | MCFG_RAM_MODIFY(RAM_TAG) |
| 1175 | 1178 | MCFG_RAM_DEFAULT_SIZE("16K") |
| r10321 | r10322 | |
| 1191 | 1194 | MCFG_SCREEN_SIZE(HWIDTH*8, TOTAL_LINES_60HZ) |
| 1192 | 1195 | |
| 1193 | 1196 | MCFG_FRAGMENT_ADD(a400_cartslot) |
| 1197 | ||
| 1198 | /* software lists */ | |
| 1199 | MCFG_SOFTWARE_LIST_ADD("cart_list","a800") | |
| 1194 | 1200 | MACHINE_CONFIG_END |
| 1195 | 1201 | |
| 1196 | 1202 | static MACHINE_CONFIG_DERIVED( a800xlpal, a800xl ) |
| r10321 | r10322 | |
| 1221 | 1227 | MCFG_PIA6821_MODIFY( "pia", xegs_pia_interface ) |
| 1222 | 1228 | |
| 1223 | 1229 | MCFG_DEVICE_REMOVE("cart1") |
| 1230 | MCFG_DEVICE_REMOVE("cart_list") | |
| 1224 | 1231 | |
| 1225 | 1232 | MCFG_CARTSLOT_ADD("cart1") |
| 1226 | 1233 | MCFG_CARTSLOT_EXTENSION_LIST("rom,bin") |
| Previous | 15994 Revisions | Next |