src/mame/machine/atari.c
| r3979 | r3980 | |
| 839 | 839 | int size; |
| 840 | 840 | |
| 841 | 841 | /* load an optional (dual) cartridge (e.g. basic.rom) */ |
| 842 | | if( image_index_in_device(image) > 0 ) |
| 842 | if( strcmp(image->tag,"cart2") == 0 ) |
| 843 | 843 | { |
| 844 | 844 | size = image_fread(image, &mem[0x12000], 0x2000); |
| 845 | 845 | a800_cart_is_16k = (size == 0x2000); |
| r3979 | r3980 | |
| 858 | 858 | |
| 859 | 859 | DEVICE_IMAGE_UNLOAD( a800_cart ) |
| 860 | 860 | { |
| 861 | | if( image_index_in_device(image) > 0 ) |
| 861 | if( strcmp(image->tag,"cart2") == 0 ) |
| 862 | 862 | { |
| 863 | 863 | a800_cart_is_16k = 0; |
| 864 | 864 | a800_setbank(image->machine, 1); |