| Previous | 15994 Revisions | Next |
| r14415 Friday 10th February, 2012 at 19:28:09 UTC by Curt Coder |
|---|
| [C64] Added support for the following cartridge types: COMAL 80, Dinamic, Fun Play, GeoRAM, Magic Desk, Mikro Assembler, Ocean (partial), Rex, System 3, Westermann, Zaxxon. [Curt Coder] |
| [hash] | c64_cart.xml |
| [src/mess] | mess.mak |
| [src/mess/machine] | c64_comal80.c* c64_comal80.h* c64_dinamic.c* c64_dinamic.h* c64_fun_play.c* c64_fun_play.h* c64_georam.c* c64_georam.h* c64_magic_desk.c* c64_magic_desk.h* c64_mikro_assembler.c* c64_mikro_assembler.h* c64_ocean.c* c64_ocean.h* c64_rex.c* c64_rex.h* c64_system3.c* c64_system3.h* c64_westermann.c* c64_westermann.h* c64_zaxxon.c* c64_zaxxon.h* c64exp.c c64exp.h cbmipt.c cbmipt.h |
| r14414 | r14415 | |
|---|---|---|
| 522 | 522 | </part> |
| 523 | 523 | </software> |
| 524 | 524 | |
| 525 | <!-- commented out until dumped --> | |
| 526 | <!--software name="chasehq2" supported="no"> | |
| 525 | <software name="chasehq2" supported="no"> | |
| 527 | 526 | <description>Chase H.Q. 2: Special Criminal Investigation</description> |
| 528 | 527 | <year>1990</year> |
| 529 | <publisher>Ocean</publisher | |
| 528 | <publisher>Ocean</publisher | |
| 530 | 529 | <!-- |
| 531 | 530 | |===========================| |
| 532 | 531 | |=| LS02 | |
| r14414 | r14415 | |
| 542 | 541 | ROM0,1 - 28-pin ROM (Toshiba TC531000 pinout, markings scratched off) |
| 543 | 542 | bankswitch latch @ I/O1: D3-D0 = A16-A13 |
| 544 | 543 | --> |
| 545 | < | |
| 544 | < | |
| 546 | 545 | <feature name="slot" value="ocean" /> |
| 547 | <feature name="game" value=" | |
| 546 | <feature name="game" value="1" /> | |
| 548 | 547 | <feature name="exrom" value="0" /> |
| 549 | 548 | <feature name="pcb" value="T-40" /> |
| 550 | ||
| 549 | <dataarea name="roml" size="0x40000"> | |
| 550 | <rom name="chase hq 2 (1990)(ocean).80" size="0x40000" status="baddump" crc="fed59f99" sha1="7740e7c97c5d4babb77daa57b3929149dfd12714" offset="0x0000" /> | |
| 551 | </dataarea> | |
| 552 | <!-- | |
| 551 | 553 | <dataarea name="roml" size="0x20000"> |
| 552 | 554 | <rom name="l.u3" size="0x20000" status="nodump" offset="0x0000" /> |
| 553 | 555 | </dataarea> |
| r14414 | r14415 | |
| 555 | 557 | <dataarea name="romh" size="0x20000"> |
| 556 | 558 | <rom name="h.u2" size="0x20000" status="nodump" offset="0x0000" /> |
| 557 | 559 | </dataarea> |
| 560 | --> | |
| 558 | 561 | </part> |
| 559 | </software | |
| 562 | </software | |
| 560 | 563 | |
| 561 | 564 | <software name="xl80" supported="no"> |
| 562 | 565 | <description>XL 80</description> |
| r14414 | r14415 | |
| 1039 | 1042 | <publisher>Rex Datentechnik</publisher> |
| 1040 | 1043 | <info name="serial" value="REX 9505" /> |
| 1041 | 1044 | <part name="cart" interface="c64_cart"> |
| 1042 | <feature name="slot" value="rex | |
| 1045 | <feature name="slot" value="rex | |
| 1043 | 1046 | <feature name="exrom" value="0" /> |
| 1044 | 1047 | <feature name="game" value="1" /> |
| 1045 | 1048 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1054 | 1057 | <publisher>Rex Datentechnik</publisher> |
| 1055 | 1058 | <info name="serial" value="REX 9510" /> |
| 1056 | 1059 | <part name="cart" interface="c64_cart"> |
| 1057 | <feature name="slot" value="rex | |
| 1060 | <feature name="slot" value="rex | |
| 1058 | 1061 | <feature name="exrom" value="0" /> |
| 1059 | 1062 | <feature name="game" value="1" /> |
| 1060 | 1063 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1069 | 1072 | <publisher>Rex Datentechnik</publisher> |
| 1070 | 1073 | <info name="serial" value="REX 9513" /> |
| 1071 | 1074 | <part name="cart" interface="c64_cart"> |
| 1072 | <feature name="slot" value="rex | |
| 1075 | <feature name="slot" value="rex | |
| 1073 | 1076 | <feature name="exrom" value="0" /> |
| 1074 | 1077 | <feature name="game" value="1" /> |
| 1075 | 1078 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1078 | 1081 | </part> |
| 1079 | 1082 | </software> |
| 1080 | 1083 | |
| 1081 | <software name="ppm" | |
| 1084 | <software name="ppm" | |
| 1082 | 1085 | <description>Picture-Printer Modul (Ger)</description> |
| 1083 | 1086 | <year>1986</year> |
| 1084 | 1087 | <publisher>Rex Datentechnik</publisher> |
| 1085 | 1088 | <info name="serial" value="REX 9545" /> |
| 1086 | 1089 | <part name="cart" interface="c64_cart"> |
| 1087 | <feature name="slot" value="rex | |
| 1090 | <feature name="slot" value="rex | |
| 1088 | 1091 | <feature name="exrom" value="0" /> |
| 1089 | 1092 | <feature name="game" value="1" /> |
| 1090 | 1093 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1099 | 1102 | <publisher>Rex Datentechnik</publisher> |
| 1100 | 1103 | <info name="serial" value="REX 9583" /> |
| 1101 | 1104 | <part name="cart" interface="c64_cart"> |
| 1102 | <feature name="slot" value="rex | |
| 1105 | <feature name="slot" value="rex | |
| 1103 | 1106 | <feature name="exrom" value="0" /> |
| 1104 | 1107 | <feature name="game" value="1" /> |
| 1105 | 1108 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1159 | 1162 | <publisher>Rex Datentechnik</publisher> |
| 1160 | 1163 | <info name="serial" value="REX 9629" /> |
| 1161 | 1164 | <part name="cart" interface="c64_cart"> |
| 1162 | <feature name="slot" value="rex | |
| 1165 | <feature name="slot" value="rex | |
| 1163 | 1166 | <feature name="exrom" value="0" /> |
| 1164 | 1167 | <feature name="game" value="1" /> |
| 1165 | 1168 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 1314 | 1317 | </part> |
| 1315 | 1318 | </software> |
| 1316 | 1319 | |
| 1317 | <software name="c64anblt" | |
| 1320 | <software name="c64anblt" | |
| 1318 | 1321 | <description>C64anabalt (Encore)</description> |
| 1319 | 1322 | <year>2012</year> |
| 1320 | 1323 | <publisher>RGCD</publisher> |
| r14414 | r14415 | |
| 1328 | 1331 | </part> |
| 1329 | 1332 | </software> |
| 1330 | 1333 | |
| 1331 | <software name="c64anbltg" cloneof="c64anblt" | |
| 1334 | <software name="c64anbltg" cloneof="c64anblt" | |
| 1332 | 1335 | <description>C64anabalt (Gharmak)</description> |
| 1333 | 1336 | <year>2012</year> |
| 1334 | 1337 | <publisher>RGCD</publisher> |
| r14414 | r14415 | |
| 1342 | 1345 | </part> |
| 1343 | 1346 | </software> |
| 1344 | 1347 | |
| 1345 | <software name="blokcopy" | |
| 1348 | <software name="blokcopy" | |
| 1346 | 1349 | <description>Blok Copy</description> |
| 1347 | 1350 | <year>2011</year> |
| 1348 | 1351 | <publisher>RGCD</publisher> |
| r14414 | r14415 | |
| 1356 | 1359 | </part> |
| 1357 | 1360 | </software> |
| 1358 | 1361 | |
| 1359 | <software name="edgegrnd" | |
| 1362 | <software name="edgegrnd" | |
| 1360 | 1363 | <description>Edge Grinder</description> |
| 1361 | 1364 | <year>2011</year> |
| 1362 | 1365 | <publisher>RGCD</publisher> |
| r14414 | r14415 | |
| 1369 | 1372 | </dataarea> |
| 1370 | 1373 | </part> |
| 1371 | 1374 | </software> |
| 1375 | ||
| 1376 | <software name="mikroasm"> | |
| 1377 | <description>Mikro Assembler</description> | |
| 1378 | <year>198?</year> | |
| 1379 | <publisher>Supersoft</publisher> | |
| 1380 | <part name="cart" interface="c64_cart"> | |
| 1381 | <feature name="slot" value="mikroasm" /> | |
| 1382 | <feature name="exrom" value="0" /> | |
| 1383 | <feature name="game" value="1" /> | |
| 1384 | <dataarea name="roml" size="0x2000"> | |
| 1385 | <rom name="mikro assembler.80" size="0x2000" crc="fb6092a3" sha1="833545f69cdfd22ab188658b9a1ab5d4cb96504f" offset="0x0000" /> | |
| 1386 | </dataarea> | |
| 1387 | </part> | |
| 1388 | </software> | |
| 1372 | 1389 | |
| 1373 | 1390 | <!-- Games Added by k1w1 --> |
| 1374 | 1391 | |
| r14414 | r14415 | |
| 1654 | 1671 | </part> |
| 1655 | 1672 | </software> |
| 1656 | 1673 | |
| 1657 | <software name="buckrog" | |
| 1674 | <software name="buckrog" | |
| 1658 | 1675 | <description>Buck Rogers: Planet of Zoom</description> |
| 1659 | 1676 | <year>1983</year> |
| 1660 | 1677 | <publisher>SEGA</publisher> |
| r14414 | r14415 | |
| 2636 | 2653 | </part> |
| 2637 | 2654 | </software> |
| 2638 | 2655 | |
| 2639 | <software name="moondust" | |
| 2656 | <software name="moondust" | |
| 2640 | 2657 | <description>Moon Dust</description> |
| 2641 | 2658 | <year>1983</year> |
| 2642 | 2659 | <publisher>Creative Software</publisher> |
| r14414 | r14415 | |
| 3121 | 3138 | </part> |
| 3122 | 3139 | </software> |
| 3123 | 3140 | |
| 3124 | <software name="addsub23" | |
| 3141 | <software name="addsub23" | |
| 3125 | 3142 | <description>Der Rechenlöwe: Fit in Addition und Subtraktion - 2.-3. Schuljahr (Ger)</description> |
| 3126 | 3143 | <year>1984</year> |
| 3127 | 3144 | <publisher>Commodore</publisher> |
| 3128 | 3145 | <part name="cart" interface="c64_cart"> |
| 3129 | <feature name="slot" value="westermann | |
| 3146 | <feature name="slot" value="westermann | |
| 3130 | 3147 | <feature name="exrom" value="0" /> |
| 3131 | 3148 | <feature name="game" value="0" /> |
| 3132 | 3149 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3135 | 3152 | </part> |
| 3136 | 3153 | </software> |
| 3137 | 3154 | |
| 3138 | <software name="addsub34" | |
| 3155 | <software name="addsub34" | |
| 3139 | 3156 | <description>Der Rechenlöwe: Fit in Addition und Subtraktion - 3.-4. Schuljahr (Ger)</description> |
| 3140 | 3157 | <year>1983</year> |
| 3141 | 3158 | <publisher>Commodore</publisher> |
| 3142 | 3159 | <part name="cart" interface="c64_cart"> |
| 3143 | <feature name="slot" value="westermann | |
| 3160 | <feature name="slot" value="westermann | |
| 3144 | 3161 | <feature name="exrom" value="0" /> |
| 3145 | 3162 | <feature name="game" value="0" /> |
| 3146 | 3163 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3149 | 3166 | </part> |
| 3150 | 3167 | </software> |
| 3151 | 3168 | |
| 3152 | <software name="geomet34" | |
| 3169 | <software name="geomet34" | |
| 3153 | 3170 | <description>Der Rechenlöwe: Fit in Geometrie - 3.-4. Schuljahr (Ger)</description> |
| 3154 | 3171 | <year>1983</year> |
| 3155 | 3172 | <publisher>Commodore</publisher> |
| 3156 | 3173 | <part name="cart" interface="c64_cart"> |
| 3157 | <feature name="slot" value="westermann | |
| 3174 | <feature name="slot" value="westermann | |
| 3158 | 3175 | <feature name="exrom" value="0" /> |
| 3159 | 3176 | <feature name="game" value="0" /> |
| 3160 | 3177 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3163 | 3180 | </part> |
| 3164 | 3181 | </software> |
| 3165 | 3182 | |
| 3166 | <software name="math1" | |
| 3183 | <software name="math1" | |
| 3167 | 3184 | <description>Der Rechenlöwe: Fit in Mathematik - 1. Schuljahr (Ger)</description> |
| 3168 | 3185 | <year>1984</year> |
| 3169 | 3186 | <publisher>Commodore</publisher> |
| 3170 | 3187 | <part name="cart" interface="c64_cart"> |
| 3171 | <feature name="slot" value="westermann | |
| 3188 | <feature name="slot" value="westermann | |
| 3172 | 3189 | <feature name="exrom" value="0" /> |
| 3173 | 3190 | <feature name="game" value="0" /> |
| 3174 | 3191 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3177 | 3194 | </part> |
| 3178 | 3195 | </software> |
| 3179 | 3196 | |
| 3180 | <software name="muldiv23" | |
| 3197 | <software name="muldiv23" | |
| 3181 | 3198 | <description>Der Rechenlöwe: Fit in Multiplikation und Division - 2.-3. Schuljahr (Ger)</description> |
| 3182 | 3199 | <year>1984</year> |
| 3183 | 3200 | <publisher>Commodore</publisher> |
| 3184 | 3201 | <part name="cart" interface="c64_cart"> |
| 3185 | <feature name="slot" value="westermann | |
| 3202 | <feature name="slot" value="westermann | |
| 3186 | 3203 | <feature name="exrom" value="0" /> |
| 3187 | 3204 | <feature name="game" value="0" /> |
| 3188 | 3205 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3191 | 3208 | </part> |
| 3192 | 3209 | </software> |
| 3193 | 3210 | |
| 3194 | <software name="muldiv34" | |
| 3211 | <software name="muldiv34" | |
| 3195 | 3212 | <description>Der Rechenlöwe: Fit in Multiplikation und Division - 3.-4. Schuljahr (Ger)</description> |
| 3196 | 3213 | <year>1983</year> |
| 3197 | 3214 | <publisher>Commodore</publisher> |
| 3198 | 3215 | <part name="cart" interface="c64_cart"> |
| 3199 | <feature name="slot" value="westermann | |
| 3216 | <feature name="slot" value="westermann | |
| 3200 | 3217 | <feature name="exrom" value="0" /> |
| 3201 | 3218 | <feature name="game" value="0" /> |
| 3202 | 3219 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3205 | 3222 | </part> |
| 3206 | 3223 | </software> |
| 3207 | 3224 | |
| 3208 | <software name="recht34" | |
| 3225 | <software name="recht34" | |
| 3209 | 3226 | <description>Der Rechtschreiblöwe: Fit in Rechtschreibung - 3.-4. Schuljahr (Ger)</description> |
| 3210 | 3227 | <year>1983</year> |
| 3211 | 3228 | <publisher>Commodore</publisher> |
| 3212 | 3229 | <part name="cart" interface="c64_cart"> |
| 3213 | <feature name="slot" value="westermann | |
| 3230 | <feature name="slot" value="westermann | |
| 3214 | 3231 | <feature name="exrom" value="0" /> |
| 3215 | 3232 | <feature name="game" value="0" /> |
| 3216 | 3233 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 3369 | 3386 | </part> |
| 3370 | 3387 | </software> |
| 3371 | 3388 | |
| 3372 | <software name="serptine" | |
| 3389 | <software name="serptine" | |
| 3373 | 3390 | <description>Serpentine</description> |
| 3374 | 3391 | <year>1982</year> |
| 3375 | 3392 | <publisher>Brøderbund</publisher> |
| r14414 | r14415 | |
| 3943 | 3960 | <year>1990</year> |
| 3944 | 3961 | <publisher>Domark</publisher> |
| 3945 | 3962 | <part name="cart" interface="c64_cart"> |
| 3946 | <feature name="slot" value=" | |
| 3963 | <feature name="slot" value="magic_desk" /> | |
| 3947 | 3964 | <feature name="exrom" value="0" /> |
| 3948 | 3965 | <feature name="game" value="1" /> |
| 3949 | 3966 | <dataarea name="roml" size="0x10000"> |
| r14414 | r14415 | |
| 3980 | 3997 | </part> |
| 3981 | 3998 | </software> |
| 3982 | 3999 | |
| 3983 | <software name="c64gs | |
| 4000 | <software name="c64gs | |
| 3984 | 4001 | <description>Commodore 64 Game System Cartridge</description> |
| 3985 | 4002 | <!-- This cartridge came packaged with the C64 Game System. --> |
| 3986 | 4003 | <year>1990</year> |
| 3987 | 4004 | <publisher>Commodore</publisher> |
| 3988 | 4005 | <part name="cart" interface="c64_cart"> |
| 3989 | <feature name="slot" value=" | |
| 4006 | <feature name="slot" value=" | |
| 3990 | 4007 | <feature name="exrom" value="0" /> |
| 3991 | 4008 | <feature name="game" value="0" /> |
| 3992 | 4009 | <dataarea name="roml" size="0x80000"> |
| r14414 | r14415 | |
| 4000 | 4017 | <year>1990</year> |
| 4001 | 4018 | <publisher>Domark</publisher> |
| 4002 | 4019 | <part name="cart" interface="c64_cart"> |
| 4003 | <feature name="slot" value=" | |
| 4020 | <feature name="slot" value="magic_desk" /> | |
| 4004 | 4021 | <feature name="exrom" value="0" /> |
| 4005 | 4022 | <feature name="game" value="1" /> |
| 4006 | 4023 | <dataarea name="roml" size="0x20000"> |
| r14414 | r14415 | |
| 4042 | 4059 | <year>1982</year> |
| 4043 | 4060 | <publisher>Synapse</publisher> |
| 4044 | 4061 | <part name="cart" interface="c64_cart"> |
| 4045 | <feature name="slot" value=" | |
| 4062 | <feature name="slot" value="magic_desk" /> | |
| 4046 | 4063 | <feature name="exrom" value="0" /> |
| 4047 | 4064 | <feature name="game" value="1" /> |
| 4048 | 4065 | <dataarea name="roml" size="0x4000"> |
| r14414 | r14415 | |
| 4070 | 4087 | <year>1984</year> |
| 4071 | 4088 | <publisher>Activision</publisher> |
| 4072 | 4089 | <part name="cart" interface="c64_cart"> |
| 4073 | <feature name="slot" value=" | |
| 4090 | <feature name="slot" value="magic_desk" /> | |
| 4074 | 4091 | <feature name="exrom" value="0" /> |
| 4075 | 4092 | <feature name="game" value="1" /> |
| 4076 | 4093 | <dataarea name="roml" size="0x8000"> |
| r14414 | r14415 | |
| 4084 | 4101 | <year>1985</year> |
| 4085 | 4102 | <publisher>Data East</publisher> |
| 4086 | 4103 | <part name="cart" interface="c64_cart"> |
| 4087 | <feature name="slot" value=" | |
| 4104 | <feature name="slot" value="magic_desk" /> | |
| 4088 | 4105 | <feature name="exrom" value="0" /> |
| 4089 | 4106 | <feature name="game" value="1" /> |
| 4090 | 4107 | <dataarea name="roml" size="0x8000"> |
| r14414 | r14415 | |
| 4098 | 4115 | <year>1990</year> |
| 4099 | 4116 | <publisher>System 3</publisher> |
| 4100 | 4117 | <part name="cart" interface="c64_cart"> |
| 4101 | <feature name="slot" value=" | |
| 4118 | <feature name="slot" value=" | |
| 4102 | 4119 | <feature name="exrom" value="0" /> |
| 4103 | 4120 | <feature name="game" value="1" /> |
| 4104 | 4121 | <dataarea name="roml" size="0x80000"> |
| r14414 | r14415 | |
| 4112 | 4129 | <year>1986</year> |
| 4113 | 4130 | <publisher>Access</publisher> |
| 4114 | 4131 | <part name="cart" interface="c64_cart"> |
| 4115 | <feature name="slot" value=" | |
| 4132 | <feature name="slot" value="magic_desk" /> | |
| 4116 | 4133 | <feature name="exrom" value="0" /> |
| 4117 | 4134 | <feature name="game" value="1" /> |
| 4118 | 4135 | <dataarea name="roml" size="0x8000"> |
| r14414 | r14415 | |
| 4135 | 4152 | </part> |
| 4136 | 4153 | </software> |
| 4137 | 4154 | |
| 4138 | <software name="myth"> | |
| 4155 | <software name="myth" supported="no"> | |
| 4139 | 4156 | <description>Myth: History in the Making</description> |
| 4140 | 4157 | <year>1990</year> |
| 4141 | 4158 | <publisher>System 3</publisher> |
| 4142 | 4159 | <part name="cart" interface="c64_cart"> |
| 4143 | <feature name="slot" value=" | |
| 4160 | <feature name="slot" value=" | |
| 4144 | 4161 | <feature name="exrom" value="0" /> |
| 4145 | 4162 | <feature name="game" value="1" /> |
| 4146 | 4163 | <dataarea name="roml" size="0x80000"> |
| r14414 | r14415 | |
| 4163 | 4180 | </part> |
| 4164 | 4181 | </software> |
| 4165 | 4182 | |
| 4166 | <software name="navyseal"> | |
| 4183 | <software name="navyseal" supported="no"> | |
| 4167 | 4184 | <description>Navy SEALs</description> |
| 4168 | 4185 | <year>1990</year> |
| 4169 | 4186 | <publisher>Ocean</publisher> |
| 4170 | 4187 | <part name="cart" interface="c64_cart"> |
| 4171 | 4188 | <feature name="slot" value="ocean" /> |
| 4172 | 4189 | <feature name="exrom" value="0" /> |
| 4173 | <feature name="game" value=" | |
| 4190 | <feature name="game" value="1" /> | |
| 4174 | 4191 | <dataarea name="roml" size="0x20000"> |
| 4175 | 4192 | <rom name="navy seals (1990)(ocean).80" size="0x20000" crc="e9b35896" sha1="0ccab1900df683d7f467fed49f92e98f03c3e393" offset="0x0000" /> |
| 4176 | 4193 | </dataarea> |
| r14414 | r14415 | |
| 4219 | 4236 | </part> |
| 4220 | 4237 | </software> |
| 4221 | 4238 | |
| 4222 | <software name="robocop2"> | |
| 4239 | <software name="robocop2" supported="no"> | |
| 4223 | 4240 | <description>Robocop 2</description> |
| 4224 | 4241 | <year>1990</year> |
| 4225 | 4242 | <publisher>Ocean</publisher> |
| 4226 | 4243 | <part name="cart" interface="c64_cart"> |
| 4227 | 4244 | <feature name="slot" value="ocean" /> |
| 4228 | 4245 | <feature name="exrom" value="0" /> |
| 4229 | <feature name="game" value=" | |
| 4246 | <feature name="game" value="1" /> | |
| 4230 | 4247 | <dataarea name="roml" size="0x40000"> |
| 4231 | <rom name="robocop 2 (1990)(ocean).80" size="0x40000" crc="e1e8b732" sha1="0f356283b8e4372e0e81474ba658ca229a18d99e" offset="0x0000" /> | |
| 4248 | <rom name="robocop 2 (1990)(ocean).80" size="0x40000" status="baddump" crc="e1e8b732" sha1="0f356283b8e4372e0e81474ba658ca229a18d99e" offset="0x0000" /> | |
| 4232 | 4249 | </dataarea> |
| 4233 | 4250 | </part> |
| 4234 | 4251 | </software> |
| r14414 | r14415 | |
| 4240 | 4257 | <part name="cart" interface="c64_cart"> |
| 4241 | 4258 | <feature name="slot" value="ocean" /> |
| 4242 | 4259 | <feature name="exrom" value="0" /> |
| 4243 | <feature name="game" value=" | |
| 4260 | <feature name="game" value="1" /> | |
| 4244 | 4261 | <dataarea name="roml" size="0x20000"> |
| 4245 | 4262 | <rom name="robocop 3 (1992)(ocean software).80" size="0x20000" crc="ed9a36df" sha1="a15178958bd8c0503edd6caa631feb7b4b386fda" offset="0x0000" /> |
| 4246 | 4263 | </dataarea> |
| r14414 | r14415 | |
| 4261 | 4278 | </part> |
| 4262 | 4279 | </software> |
| 4263 | 4280 | |
| 4264 | <software name="beast"> | |
| 4281 | <software name="beast" supported="no"> | |
| 4265 | 4282 | <description>Shadow of the Beast</description> |
| 4266 | 4283 | <year>1990</year> |
| 4267 | 4284 | <publisher>Ocean</publisher> |
| 4268 | 4285 | <part name="cart" interface="c64_cart"> |
| 4269 | 4286 | <feature name="slot" value="ocean" /> |
| 4270 | 4287 | <feature name="exrom" value="0" /> |
| 4271 | <feature name="game" value=" | |
| 4288 | <feature name="game" value="1" /> | |
| 4272 | 4289 | <dataarea name="roml" size="0x40000"> |
| 4273 | <rom name="shadow of the beast (1990)(ocean).80" size="0x40000" crc="a68dff98" sha1="86eb8c113adc2a13d236c738c4ac44d9a2f1de68" offset="0x0000" /> | |
| 4290 | <rom name="shadow of the beast (1990)(ocean).80" size="0x40000" status="baddump" crc="a68dff98" sha1="86eb8c113adc2a13d236c738c4ac44d9a2f1de68" offset="0x0000" /> | |
| 4274 | 4291 | </dataarea> |
| 4275 | 4292 | </part> |
| 4276 | 4293 | </software> |
| r14414 | r14415 | |
| 4282 | 4299 | <part name="cart" interface="c64_cart"> |
| 4283 | 4300 | <feature name="slot" value="ocean" /> |
| 4284 | 4301 | <feature name="exrom" value="0" /> |
| 4285 | <feature name="game" value="0" /> | |
| 4286 | <dataarea name="roml" size="0x40000"> | |
| 4287 | <rom name="space gun (1992)(ocean).80" size="0x40000" crc="1a815540" sha1="b9d41f4d2b0d94f53a809d4177a1dbb662a25aac" offset="0x0000" /> | |
| 4302 | <feature name="game" value="1" /> | |
| 4303 | <dataarea name="roml" size="0x20000"> | |
| 4304 | <rom name="space gun (1992)(ocean).80" size="0x20000" crc="3eeddf3f" sha1="afe673ead1eaa947b94942b420f87960e0db4641" offset="0x0000" /> | |
| 4288 | 4305 | </dataarea> |
| 4289 | 4306 | </part> |
| 4290 | 4307 | </software> |
| r14414 | r14415 | |
| 4297 | 4314 | <feature name="slot" value="zaxxon" /> |
| 4298 | 4315 | <feature name="exrom" value="0" /> |
| 4299 | 4316 | <feature name="game" value="0" /> |
| 4300 | <dataarea name="roml" size="0x5000"> | |
| 4301 | <rom name="super zaxxon (1984)(hesware).80" size="0x5000" crc="376296d6" sha1="6435bca29b333ed90b0a2a6b7d92b6bc565863f1" offset="0x0000" /> | |
| 4317 | <dataarea name="roml" size="0x1000"> | |
| 4318 | <rom name="super zaxxon (1984)(hesware).80" size="0x1000" crc="bf888d1c" sha1="49d639e18b0a18978a7718c8e0cc5a8ba562c561" offset="0x0000" /> | |
| 4302 | 4319 | </dataarea> |
| 4320 | <dataarea name="romh" size="0x4000"> | |
| 4321 | <rom name="super zaxxon (1984)(hesware).a0" size="0x4000" crc="85c3e5b7" sha1="dfb582dd3beeb56a1298a3a800a4d13905104b7b" offset="0x0000" /> | |
| 4322 | </dataarea> | |
| 4303 | 4323 | </part> |
| 4304 | 4324 | </software> |
| 4305 | 4325 | |
| r14414 | r14415 | |
| 4324 | 4344 | <part name="cart" interface="c64_cart"> |
| 4325 | 4345 | <feature name="slot" value="ocean" /> |
| 4326 | 4346 | <feature name="exrom" value="0" /> |
| 4327 | <feature name="game" value=" | |
| 4347 | <feature name="game" value="1" /> | |
| 4328 | 4348 | <dataarea name="roml" size="0x20000"> |
| 4329 | 4349 | <rom name="toki (1991)(ocean).80" size="0x20000" crc="1f148c97" sha1="123cd6768de4c4406e1026c41c9ba441d42fe966" offset="0x0000" /> |
| 4330 | 4350 | </dataarea> |
| r14414 | r14415 | |
| 4350 | 4370 | <year>1990</year> |
| 4351 | 4371 | <publisher>Domark</publisher> |
| 4352 | 4372 | <part name="cart" interface="c64_cart"> |
| 4353 | <feature name="slot" value=" | |
| 4373 | <feature name="slot" value="magic_desk" /> | |
| 4354 | 4374 | <feature name="exrom" value="0" /> |
| 4355 | 4375 | <feature name="game" value="1" /> |
| 4356 | 4376 | <dataarea name="roml" size="0x10000"> |
| r14414 | r14415 | |
| 4364 | 4384 | <year>1987</year> |
| 4365 | 4385 | <publisher>Activision</publisher> |
| 4366 | 4386 | <part name="cart" interface="c64_cart"> |
| 4367 | <feature name="slot" value=" | |
| 4387 | <feature name="slot" value="magic_desk" /> | |
| 4368 | 4388 | <feature name="exrom" value="0" /> |
| 4369 | 4389 | <feature name="game" value="1" /> |
| 4370 | 4390 | <dataarea name="roml" size="0x10000"> |
| r14414 | r14415 | |
| 4381 | 4401 | <feature name="slot" value="zaxxon" /> |
| 4382 | 4402 | <feature name="exrom" value="0" /> |
| 4383 | 4403 | <feature name="game" value="0" /> |
| 4384 | <dataarea name="roml" size="0x5000"> | |
| 4385 | <rom name="zaxxon (1984)(synapse).80" size="0x5000" crc="bf43637f" sha1="1685d49a535e3f9f38a2a769b9cfd3aff98d6cfa" offset="0x0000" /> | |
| 4404 | <dataarea name="roml" size="0x1000"> | |
| 4405 | <rom name="zaxxon (1984)(synapse).80" size="0x1000" crc="499ea478" sha1="da15b8a9f92e26b5650a1950abafc498cc6f78fb" offset="0x0000" /> | |
| 4386 | 4406 | </dataarea> |
| 4407 | <dataarea name="romh" size="0x4000"> | |
| 4408 | <rom name="zaxxon (1984)(synapse).a0" size="0x4000" crc="9890c4e1" sha1="0beda1c7d08b797a76cbb7d7c92bbcc137633715" offset="0x0000" /> | |
| 4409 | </dataarea> | |
| 4387 | 4410 | </part> |
| 4388 | 4411 | </software> |
| 4389 | 4412 | |
| r14414 | r14415 | |
| 4669 | 4692 | <year>1988</year> |
| 4670 | 4693 | <publisher>Puma-Sharks</publisher> |
| 4671 | 4694 | <part name="cart" interface="c64_cart"> |
| 4672 | <feature name="slot" value="rex | |
| 4695 | <feature name="slot" value="rex | |
| 4673 | 4696 | <feature name="exrom" value="0" /> |
| 4674 | 4697 | <feature name="game" value="1" /> |
| 4675 | 4698 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 4707 | 4730 | </part> |
| 4708 | 4731 | </software> |
| 4709 | 4732 | |
| 4710 | <software name="delta323" | |
| 4733 | <software name="delta323" | |
| 4711 | 4734 | <description>Delta Drawing v3.23</description> |
| 4712 | 4735 | <year>1983</year> |
| 4713 | 4736 | <publisher>Spinnaker Software</publisher> |
| r14414 | r14415 | |
| 4777 | 4800 | <year>1988</year> |
| 4778 | 4801 | <publisher>CIA</publisher> |
| 4779 | 4802 | <part name="cart" interface="c64_cart"> |
| 4780 | <feature name="slot" value="rex | |
| 4803 | <feature name="slot" value="rex | |
| 4781 | 4804 | <feature name="exrom" value="0" /> |
| 4782 | 4805 | <feature name="game" value="1" /> |
| 4783 | 4806 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 4804 | 4827 | <year>19??</year> |
| 4805 | 4828 | <publisher><unknown></publisher> |
| 4806 | 4829 | <part name="cart" interface="c64_cart"> |
| 4807 | <feature name="slot" value="rex | |
| 4830 | <feature name="slot" value="rex | |
| 4808 | 4831 | <feature name="exrom" value="0" /> |
| 4809 | 4832 | <feature name="game" value="1" /> |
| 4810 | 4833 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 4826 | 4849 | </part> |
| 4827 | 4850 | </software> |
| 4828 | 4851 | |
| 4829 | <software name="formatm" | |
| 4852 | <software name="formatm" | |
| 4830 | 4853 | <description>Format- und Hardcopymodul (Ger)</description> |
| 4831 | 4854 | <year>19??</year> |
| 4832 | 4855 | <publisher>Rex Datentechnik</publisher> |
| 4833 | 4856 | <part name="cart" interface="c64_cart"> |
| 4834 | <feature name="slot" value="rex | |
| 4857 | <feature name="slot" value="rex | |
| 4835 | 4858 | <feature name="exrom" value="0" /> |
| 4836 | 4859 | <feature name="game" value="1" /> |
| 4837 | 4860 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 4853 | 4876 | </part> |
| 4854 | 4877 | </software> |
| 4855 | 4878 | |
| 4856 | <software name="happypac" | |
| 4879 | <software name="happypac" | |
| 4857 | 4880 | <description>Happy-Packer (Ger)</description> |
| 4858 | 4881 | <year>1987</year> |
| 4859 | 4882 | <publisher>Peter Arndt</publisher> |
| 4860 | 4883 | <part name="cart" interface="c64_cart"> |
| 4861 | <feature name="slot" value="rex | |
| 4884 | <feature name="slot" value="rex | |
| 4862 | 4885 | <feature name="exrom" value="0" /> |
| 4863 | 4886 | <feature name="game" value="1" /> |
| 4864 | 4887 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 4937 | 4960 | <year>19??</year> |
| 4938 | 4961 | <publisher><unknown></publisher> |
| 4939 | 4962 | <part name="cart" interface="c64_cart"> |
| 4940 | <feature name="slot" value="rex | |
| 4963 | <feature name="slot" value="rex | |
| 4941 | 4964 | <feature name="exrom" value="0" /> |
| 4942 | 4965 | <feature name="game" value="1" /> |
| 4943 | 4966 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 5084 | 5107 | </part> |
| 5085 | 5108 | </software> |
| 5086 | 5109 | |
| 5087 | <software name="tfgmodul" | |
| 5110 | <software name="tfgmodul" | |
| 5088 | 5111 | <description>TFG Module</description> |
| 5089 | 5112 | <year>1986</year> |
| 5090 | 5113 | <publisher>T.F.G. Software</publisher> |
| 5091 | 5114 | <part name="cart" interface="c64_cart"> |
| 5092 | <feature name="slot" value="rex | |
| 5115 | <feature name="slot" value="rex | |
| 5093 | 5116 | <feature name="exrom" value="0" /> |
| 5094 | 5117 | <feature name="game" value="1" /> |
| 5095 | 5118 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 5116 | 5139 | <year>19??</year> |
| 5117 | 5140 | <publisher><unknown></publisher> |
| 5118 | 5141 | <part name="cart" interface="c64_cart"> |
| 5119 | <feature name="slot" value="rex | |
| 5142 | <feature name="slot" value="rex | |
| 5120 | 5143 | <feature name="exrom" value="0" /> |
| 5121 | 5144 | <feature name="game" value="1" /> |
| 5122 | 5145 | <dataarea name="roml" size="0x2000"> |
| r14414 | r14415 | |
| 5350 | 5373 | <year>1985</year> |
| 5351 | 5374 | <publisher>Commodore</publisher> |
| 5352 | 5375 | <part name="cart" interface="c64_cart"> |
| 5353 | <feature name="slot" value="comal | |
| 5376 | <feature name="slot" value="comal | |
| 5354 | 5377 | <feature name="exrom" value="0" /> |
| 5355 | 5378 | <feature name="game" value="0" /> |
| 5356 | 5379 | <dataarea name="roml" size="0x10000"> |
| r14414 | r14415 | |
| 5364 | 5387 | <year>1985</year> |
| 5365 | 5388 | <publisher>UniComal</publisher> |
| 5366 | 5389 | <part name="cart" interface="c64_cart"> |
| 5367 | <feature name="slot" value="comal | |
| 5390 | <feature name="slot" value="comal | |
| 5368 | 5391 | <feature name="exrom" value="0" /> |
| 5369 | 5392 | <feature name="game" value="0" /> |
| 5370 | 5393 | <dataarea name="roml" size="0x10000"> |
| r14414 | r14415 | |
|---|---|---|
| 1143 | 1143 | SLOT_INTERFACE_END |
| 1144 | 1144 | |
| 1145 | 1145 | SLOT_INTERFACE_START( c64_expansion_cards ) |
| 1146 | SLOT_INTERFACE("georam", C64_GEORAM) | |
| 1147 | SLOT_INTERFACE("xl80", C64_XL80) | |
| 1148 | ||
| 1149 | // the following should not be visible in the UI | |
| 1146 | 1150 | SLOT_INTERFACE("standard", C64_STD) |
| 1151 | SLOT_INTERFACE("comal80", C64_COMAL80) | |
| 1152 | SLOT_INTERFACE("dinamic", C64_DINAMIC) | |
| 1147 | 1153 | SLOT_INTERFACE("easycalcres", C64_EASY_CALC_RESULT) |
| 1154 | SLOT_INTERFACE("fun_play", C64_FUN_PLAY) | |
| 1155 | SLOT_INTERFACE("magic_desk", C64_MAGIC_DESK) | |
| 1156 | SLOT_INTERFACE("mikroasm", C64_MIKRO_ASSEMBLER) | |
| 1148 | 1157 | SLOT_INTERFACE("multiscreen", C64_MULTISCREEN) |
| 1158 | SLOT_INTERFACE("ocean", C64_OCEAN) | |
| 1149 | 1159 | SLOT_INTERFACE("pagefox", C64_PAGEFOX) |
| 1160 | SLOT_INTERFACE("rex", C64_REX) | |
| 1150 | 1161 | SLOT_INTERFACE("silverrock", C64_SILVERROCK) |
| 1151 | 1162 | SLOT_INTERFACE("simons_basic", C64_SIMONS_BASIC) |
| 1152 | 1163 | SLOT_INTERFACE("super_explode", C64_SUPER_EXPLODE) |
| 1164 | SLOT_INTERFACE("system3", C64_SYSTEM3) | |
| 1153 | 1165 | SLOT_INTERFACE("vizawrite", C64_VW64) |
| 1154 | SLOT_INTERFACE("xl80", C64_XL80) | |
| 1166 | SLOT_INTERFACE("westermann", C64_WESTERMANN) | |
| 1167 | SLOT_INTERFACE("zaxxon", C64_ZAXXON) | |
| 1155 | 1168 | SLOT_INTERFACE_END |
| 1156 | 1169 | |
| 1157 | 1170 | SLOT_INTERFACE_START( c64_user_port_cards ) |
| r14414 | r14415 | |
|---|---|---|
| 3 | 3 | #ifndef CBMIPT_H_ |
| 4 | 4 | #define CBMIPT_H_ |
| 5 | 5 | |
| 6 | #include "machine/c64_comal80.h" | |
| 7 | #include "machine/c64_dinamic.h" | |
| 6 | 8 | #include "machine/c64_easy_calc_result.h" |
| 9 | #include "machine/c64_fun_play.h" | |
| 10 | #include "machine/c64_georam.h" | |
| 11 | #include "machine/c64_magic_desk.h" | |
| 12 | #include "machine/c64_mikro_assembler.h" | |
| 7 | 13 | #include "machine/c64_multiscreen.h" |
| 14 | #include "machine/c64_ocean.h" | |
| 8 | 15 | #include "machine/c64_pagefox.h" |
| 16 | #include "machine/c64_rex.h" | |
| 9 | 17 | #include "machine/c64_silverrock.h" |
| 10 | 18 | #include "machine/c64_simons_basic.h" |
| 11 | 19 | #include "machine/c64_std.h" |
| 12 | 20 | #include "machine/c64_super_explode.h" |
| 21 | #include "machine/c64_system3.h" | |
| 13 | 22 | #include "machine/c64_vw64.h" |
| 23 | #include "machine/c64_westermann.h" | |
| 14 | 24 | #include "machine/c64_xl80.h" |
| 25 | #include "machine/c64_zaxxon.h" | |
| 15 | 26 | #include "machine/c1541.h" |
| 16 | 27 | #include "machine/c1571.h" |
| 17 | 28 | #include "machine/c1581.h" |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Ocean Software cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_ocean.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_OCEAN = &device_creator<c64_ocean_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_ocean_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_ocean_cartridge_device::c64_ocean_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_OCEAN, "C64 Ocean cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_ocean_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_ocean_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr & m_roml_mask]; | |
| 70 | } | |
| 71 | else if (!romh) | |
| 72 | { | |
| 73 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 74 | data = m_romh[addr & m_romh_mask]; | |
| 75 | } | |
| 76 | else if (!io1) | |
| 77 | { | |
| 78 | return m_bank; | |
| 79 | } | |
| 80 | ||
| 81 | return data; | |
| 82 | } | |
| 83 | ||
| 84 | ||
| 85 | //------------------------------------------------- | |
| 86 | // c64_cd_w - cartridge data write | |
| 87 | //------------------------------------------------- | |
| 88 | ||
| 89 | void c64_ocean_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 90 | { | |
| 91 | if (!io1) | |
| 92 | { | |
| 93 | logerror("bank %02x\n", data); | |
| 94 | m_bank = data & 0x3f; | |
| 95 | } | |
| 96 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Ocean Software cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __OCEAN__ | |
| 13 | #define __OCEAN__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_ocean_cartridge_device | |
| 27 | ||
| 28 | class c64_ocean_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_ocean_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_OCEAN; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | System 3 cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_system3.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_SYSTEM3 = &device_creator<c64_system3_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_system3_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_system3_cartridge_device::c64_system3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_SYSTEM3, "C64 Dinamic cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_system3_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_system3_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | ||
| 72 | return data; | |
| 73 | } | |
| 74 | ||
| 75 | ||
| 76 | //------------------------------------------------- | |
| 77 | // c64_cd_w - cartridge data write | |
| 78 | //------------------------------------------------- | |
| 79 | ||
| 80 | void c64_system3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 81 | { | |
| 82 | if (!io1) | |
| 83 | { | |
| 84 | m_bank = offset & 0x0f; | |
| 85 | } | |
| 86 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Dinamic Software cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __SYSTEM3__ | |
| 13 | #define __SYSTEM3__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_system3_cartridge_device | |
| 27 | ||
| 28 | class c64_system3_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_system3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_SYSTEM3; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Fun Play / Power Play cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_fun_play.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_FUN_PLAY = &device_creator<c64_fun_play_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_fun_play_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_fun_play_cartridge_device::c64_fun_play_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_FUN_PLAY, "C64 Fun Play cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_fun_play_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_fun_play_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | ||
| 72 | return data; | |
| 73 | } | |
| 74 | ||
| 75 | ||
| 76 | //------------------------------------------------- | |
| 77 | // c64_cd_w - cartridge data write | |
| 78 | //------------------------------------------------- | |
| 79 | ||
| 80 | void c64_fun_play_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 81 | { | |
| 82 | if (!io1) | |
| 83 | { | |
| 84 | /* | |
| 85 | ||
| 86 | bit description | |
| 87 | ||
| 88 | 0 A16 | |
| 89 | 1 | |
| 90 | 2 | |
| 91 | 3 A13 | |
| 92 | 4 A14 | |
| 93 | 5 A15 | |
| 94 | 6 | |
| 95 | 7 | |
| 96 | ||
| 97 | */ | |
| 98 | ||
| 99 | m_bank = ((data & 0x01) << 3) | ((data >> 3) & 0x07); | |
| 100 | } | |
| 101 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Fun Play / Power Play cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __FUN_PLAY__ | |
| 13 | #define __FUN_PLAY__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_fun_play_cartridge_device | |
| 27 | ||
| 28 | class c64_fun_play_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_fun_play_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_FUN_PLAY; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Westermann Learning cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_westermann.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_WESTERMANN = &device_creator<c64_westermann_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_westermann_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_westermann_cartridge_device::c64_westermann_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_WESTERMANN, "C64 Westermann cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_westermann_cartridge_device::device_start() | |
| 42 | { | |
| 43 | } | |
| 44 | ||
| 45 | ||
| 46 | //------------------------------------------------- | |
| 47 | // device_reset - device-specific reset | |
| 48 | //------------------------------------------------- | |
| 49 | ||
| 50 | void c64_westermann_cartridge_device::device_reset() | |
| 51 | { | |
| 52 | m_game = 0; | |
| 53 | } | |
| 54 | ||
| 55 | ||
| 56 | //------------------------------------------------- | |
| 57 | // c64_cd_r - cartridge data read | |
| 58 | //------------------------------------------------- | |
| 59 | ||
| 60 | UINT8 c64_westermann_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 61 | { | |
| 62 | UINT8 data = 0; | |
| 63 | ||
| 64 | if (!roml || !romh) | |
| 65 | { | |
| 66 | data = m_roml[offset & 0x3fff]; | |
| 67 | } | |
| 68 | else if (!io2) | |
| 69 | { | |
| 70 | m_game = 1; | |
| 71 | } | |
| 72 | ||
| 73 | return data; | |
| 74 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Westermann Learning cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __WESTERMANN__ | |
| 13 | #define __WESTERMANN__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_westermann_cartridge_device | |
| 27 | ||
| 28 | class c64_westermann_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_westermann_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| 45 | // device type definition | |
| 46 | extern const device_type C64_WESTERMANN; | |
| 47 | ||
| 48 | ||
| 49 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | COMAL 80 cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_comal80.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_COMAL80 = &device_creator<c64_comal80_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_comal80_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_comal80_cartridge_device::c64_comal80_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_COMAL80, "C64 COMAL 80 cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_comal80_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_comal80_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml || !romh) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 14) | (offset & 0x3fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | ||
| 72 | return data; | |
| 73 | } | |
| 74 | ||
| 75 | ||
| 76 | //------------------------------------------------- | |
| 77 | // c64_cd_w - cartridge data write | |
| 78 | //------------------------------------------------- | |
| 79 | ||
| 80 | void c64_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 81 | { | |
| 82 | if (!io1) | |
| 83 | { | |
| 84 | if (BIT(data, 7)) | |
| 85 | { | |
| 86 | m_bank = data & 0x03; | |
| 87 | } | |
| 88 | } | |
| 89 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | COMAL 80 cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __COMAL80__ | |
| 13 | #define __COMAL80__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_comal80_cartridge_device | |
| 27 | ||
| 28 | class c64_comal80_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_comal80_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_COMAL80; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Mikro Assembler cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_mikro_assembler.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_MIKRO_ASSEMBLER = &device_creator<c64_mikro_assembler_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_mikro_assembler_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_mikro_assembler_cartridge_device::c64_mikro_assembler_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_MIKRO_ASSEMBLER, "C64 Mikro Assembler cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_mikro_assembler_cartridge_device::device_start() | |
| 42 | { | |
| 43 | } | |
| 44 | ||
| 45 | ||
| 46 | //------------------------------------------------- | |
| 47 | // c64_cd_r - cartridge data read | |
| 48 | //------------------------------------------------- | |
| 49 | ||
| 50 | UINT8 c64_mikro_assembler_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 51 | { | |
| 52 | UINT8 data = 0; | |
| 53 | ||
| 54 | if (!roml || !romh || !io1 || !io2) | |
| 55 | { | |
| 56 | data = m_roml[offset & 0x1fff]; | |
| 57 | } | |
| 58 | ||
| 59 | return data; | |
| 60 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Mikro Assembler cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __MIKRO_ASSEMBLER__ | |
| 13 | #define __MIKRO_ASSEMBLER__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_mikro_assembler_cartridge_device | |
| 27 | ||
| 28 | class c64_mikro_assembler_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_mikro_assembler_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | ||
| 39 | // device_c64_expansion_card_interface overrides | |
| 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 41 | }; | |
| 42 | ||
| 43 | ||
| 44 | // device type definition | |
| 45 | extern const device_type C64_MIKRO_ASSEMBLER; | |
| 46 | ||
| 47 | ||
| 48 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | REX Datentechnik cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_rex.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_REX = &device_creator<c64_rex_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_rex_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_rex_cartridge_device::c64_rex_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_REX, "C64 Rex cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_rex_cartridge_device::device_start() | |
| 42 | { | |
| 43 | } | |
| 44 | ||
| 45 | ||
| 46 | //------------------------------------------------- | |
| 47 | // device_reset - device-specific reset | |
| 48 | //------------------------------------------------- | |
| 49 | ||
| 50 | void c64_rex_cartridge_device::device_reset() | |
| 51 | { | |
| 52 | m_exrom = 0; | |
| 53 | } | |
| 54 | ||
| 55 | ||
| 56 | //------------------------------------------------- | |
| 57 | // c64_cd_r - cartridge data read | |
| 58 | //------------------------------------------------- | |
| 59 | ||
| 60 | UINT8 c64_rex_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 61 | { | |
| 62 | UINT8 data = 0; | |
| 63 | ||
| 64 | if (!roml) | |
| 65 | { | |
| 66 | data = m_roml[offset & 0x1fff]; | |
| 67 | } | |
| 68 | else if (!io2) | |
| 69 | { | |
| 70 | if ((offset & 0xc0) == 0xc0) | |
| 71 | { | |
| 72 | m_exrom = 0; | |
| 73 | } | |
| 74 | else | |
| 75 | { | |
| 76 | m_exrom = 1; | |
| 77 | } | |
| 78 | } | |
| 79 | ||
| 80 | return data; | |
| 81 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | REX Datentechnik cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __REX__ | |
| 13 | #define __REX__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_rex_cartridge_device | |
| 27 | ||
| 28 | class c64_rex_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_rex_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| 45 | // device type definition | |
| 46 | extern const device_type C64_REX; | |
| 47 | ||
| 48 | ||
| 49 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Dinamic Software cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_dinamic.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_DINAMIC = &device_creator<c64_dinamic_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_dinamic_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_dinamic_cartridge_device::c64_dinamic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_DINAMIC, "C64 Dinamic cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_dinamic_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_dinamic_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_dinamic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | else if (!io1) | |
| 72 | { | |
| 73 | m_bank = offset & 0x0f; | |
| 74 | } | |
| 75 | ||
| 76 | return data; | |
| 77 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Dinamic Software cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __DINAMIC__ | |
| 13 | #define __DINAMIC__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_dinamic_cartridge_device | |
| 27 | ||
| 28 | class c64_dinamic_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_dinamic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | ||
| 43 | private: | |
| 44 | UINT8 m_bank; | |
| 45 | }; | |
| 46 | ||
| 47 | ||
| 48 | // device type definition | |
| 49 | extern const device_type C64_DINAMIC; | |
| 50 | ||
| 51 | ||
| 52 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Zaxxon/Super Zaxxon cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_zaxxon.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_ZAXXON = &device_creator<c64_zaxxon_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_zaxxon_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_zaxxon_cartridge_device::c64_zaxxon_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_ZAXXON, "C64 Zaxxon cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_zaxxon_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // c64_cd_r - cartridge data read | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | UINT8 c64_zaxxon_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 53 | { | |
| 54 | UINT8 data = 0; | |
| 55 | ||
| 56 | if (!roml) | |
| 57 | { | |
| 58 | data = m_roml[offset & 0xfff]; | |
| 59 | ||
| 60 | m_bank = BIT(offset, 12); | |
| 61 | } | |
| 62 | else if (!romh) | |
| 63 | { | |
| 64 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 65 | data = m_romh[addr]; | |
| 66 | } | |
| 67 | ||
| 68 | return data; | |
| 69 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Zaxxon/Super Zaxxon cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __ZAXXON__ | |
| 13 | #define __ZAXXON__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_zaxxon_cartridge_device | |
| 27 | ||
| 28 | class c64_zaxxon_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_zaxxon_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | ||
| 39 | // device_c64_expansion_card_interface overrides | |
| 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 41 | ||
| 42 | private: | |
| 43 | int m_bank; | |
| 44 | }; | |
| 45 | ||
| 46 | ||
| 47 | // device type definition | |
| 48 | extern const device_type C64_ZAXXON; | |
| 49 | ||
| 50 | ||
| 51 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Berkeley Softworks GeoRAM emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_georam.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_GEORAM = &device_creator<c64_georam_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_georam_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_georam_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // allocate memory | |
| 44 | m_ram = auto_alloc_array(machine(), UINT8, 0x80000); | |
| 45 | ||
| 46 | // state saving | |
| 47 | save_item(NAME(m_bank)); | |
| 48 | } | |
| 49 | ||
| 50 | ||
| 51 | //------------------------------------------------- | |
| 52 | // device_reset - device-specific reset | |
| 53 | //------------------------------------------------- | |
| 54 | ||
| 55 | void c64_georam_cartridge_device::device_reset() | |
| 56 | { | |
| 57 | m_bank = 0; | |
| 58 | } | |
| 59 | ||
| 60 | ||
| 61 | //------------------------------------------------- | |
| 62 | // c64_cd_r - cartridge data read | |
| 63 | //------------------------------------------------- | |
| 64 | ||
| 65 | UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 66 | { | |
| 67 | UINT8 data = 0; | |
| 68 | ||
| 69 | if (!io1) | |
| 70 | { | |
| 71 | offs_t addr = (m_bank << 8) | (offset & 0xff); | |
| 72 | data = m_ram[addr]; | |
| 73 | } | |
| 74 | ||
| 75 | return data; | |
| 76 | } | |
| 77 | ||
| 78 | ||
| 79 | //------------------------------------------------- | |
| 80 | // c64_cd_w - cartridge data write | |
| 81 | //------------------------------------------------- | |
| 82 | ||
| 83 | void c64_georam_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 84 | { | |
| 85 | if (!io1) | |
| 86 | { | |
| 87 | offs_t addr = (m_bank << 8) | (offset & 0xff); | |
| 88 | m_ram[addr] = data; | |
| 89 | } | |
| 90 | else if (!io2) | |
| 91 | { | |
| 92 | if (BIT(offset, 0)) | |
| 93 | { | |
| 94 | m_bank = ((data & 0x1f) << 6) | (m_bank & 0x3f); | |
| 95 | } | |
| 96 | else | |
| 97 | { | |
| 98 | m_bank = (m_bank & 0x7c0) | (data & 0x3f); | |
| 99 | } | |
| 100 | } | |
| 101 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Berkeley Softworks GeoRAM emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __GEORAM__ | |
| 13 | #define __GEORAM__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_georam_cartridge_device | |
| 27 | ||
| 28 | class c64_georam_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT16 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_GEORAM; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Magic Desk cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_magic_desk.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_MAGIC_DESK = &device_creator<c64_magic_desk_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_magic_desk_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_magic_desk_cartridge_device::c64_magic_desk_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_MAGIC_DESK, "C64 Magic Desk cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_magic_desk_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_magic_desk_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_bank = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | ||
| 72 | return data; | |
| 73 | } | |
| 74 | ||
| 75 | ||
| 76 | //------------------------------------------------- | |
| 77 | // c64_cd_w - cartridge data write | |
| 78 | //------------------------------------------------- | |
| 79 | ||
| 80 | void c64_magic_desk_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 81 | { | |
| 82 | if (!io1) | |
| 83 | { | |
| 84 | m_exrom = BIT(data, 7); | |
| 85 | ||
| 86 | m_bank = data & 0x3f; | |
| 87 | } | |
| 88 | } |
| r0 | r14415 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Magic Desk cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __MAGIC_DESK__ | |
| 13 | #define __MAGIC_DESK__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_magic_desk_cartridge_device | |
| 27 | ||
| 28 | class c64_magic_desk_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_magic_desk_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 40 | // device_c64_expansion_card_interface overrides | |
| 41 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2); | |
| 42 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_MAGIC_DESK; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r14414 | r14415 | |
|---|---|---|
| 34 | 34 | m_roml(NULL), |
| 35 | 35 | m_romh(NULL), |
| 36 | 36 | m_ram(NULL), |
| 37 | m_roml_mask(0), | |
| 38 | m_romh_mask(0), | |
| 39 | m_ram_mask(0), | |
| 37 | 40 | m_game(1), |
| 38 | 41 | m_exrom(1) |
| 39 | 42 | { |
| r14414 | r14415 | |
| 59 | 62 | if (m_roml == NULL) |
| 60 | 63 | { |
| 61 | 64 | m_roml = auto_alloc_array(machine, UINT8, size); |
| 65 | m_roml_mask = size - 1; | |
| 62 | 66 | } |
| 63 | 67 | |
| 64 | 68 | return m_roml; |
| r14414 | r14415 | |
| 74 | 78 | if (m_romh == NULL) |
| 75 | 79 | { |
| 76 | 80 | m_romh = auto_alloc_array(machine, UINT8, size); |
| 81 | m_romh_mask = size - 1; | |
| 77 | 82 | } |
| 78 | 83 | |
| 79 | 84 | return m_romh; |
| r14414 | r14415 | |
| 89 | 94 | if (m_ram == NULL) |
| 90 | 95 | { |
| 91 | 96 | m_ram = auto_alloc_array(machine, UINT8, size); |
| 97 | m_ram_mask = size - 1; | |
| 92 | 98 | } |
| 93 | 99 | |
| 94 | 100 | return m_ram; |
| r14414 | r14415 | |
|---|---|---|
| 179 | 179 | UINT8 *m_roml; |
| 180 | 180 | UINT8 *m_romh; |
| 181 | 181 | UINT8 *m_ram; |
| 182 | ||
| 183 | int m_roml_mask; | |
| 184 | int m_romh_mask; | |
| 185 | int m_ram_mask; | |
| 182 | 186 | |
| 183 | 187 | int m_game; |
| 184 | 188 | int m_exrom; |
| r14414 | r14415 | |
|---|---|---|
| 753 | 753 | $(MESS_DRIVERS)/c64dtv.o \ |
| 754 | 754 | $(MESS_MACHINE)/c64exp.o \ |
| 755 | 755 | $(MESS_MACHINE)/c64user.o \ |
| 756 | $(MESS_MACHINE)/c64_comal80.o \ | |
| 757 | $(MESS_MACHINE)/c64_dinamic.o \ | |
| 756 | 758 | $(MESS_MACHINE)/c64_easy_calc_result.o \ |
| 759 | $(MESS_MACHINE)/c64_fun_play.o \ | |
| 760 | $(MESS_MACHINE)/c64_georam.o \ | |
| 761 | $(MESS_MACHINE)/c64_magic_desk.o \ | |
| 762 | $(MESS_MACHINE)/c64_mikro_assembler.o \ | |
| 757 | 763 | $(MESS_MACHINE)/c64_multiscreen.o \ |
| 764 | $(MESS_MACHINE)/c64_ocean.o \ | |
| 758 | 765 | $(MESS_MACHINE)/c64_pagefox.o \ |
| 766 | $(MESS_MACHINE)/c64_rex.o \ | |
| 759 | 767 | $(MESS_MACHINE)/c64_silverrock.o \ |
| 760 | 768 | $(MESS_MACHINE)/c64_simons_basic.o \ |
| 761 | 769 | $(MESS_MACHINE)/c64_std.o \ |
| 762 | 770 | $(MESS_MACHINE)/c64_super_explode.o \ |
| 771 | $(MESS_MACHINE)/c64_system3.o \ | |
| 763 | 772 | $(MESS_MACHINE)/c64_vw64.o \ |
| 773 | $(MESS_MACHINE)/c64_westermann.o \ | |
| 764 | 774 | $(MESS_MACHINE)/c64_xl80.o \ |
| 775 | $(MESS_MACHINE)/c64_zaxxon.o \ | |
| 765 | 776 | $(MESS_MACHINE)/interpod.o \ |
| 766 | 777 | $(MESS_DRIVERS)/vic10.o \ |
| 767 | 778 | $(MESS_MACHINE)/vic10exp.o \ |
| Previous | 15994 Revisions | Next |