src/mess/machine/pce.c
| r9073 | r9074 | |
| 1068 | 1068 | logerror("%04X: write to CD interface offset %02X, data %02X\n", cpu_get_pc(space->cpu), offset, data ); |
| 1069 | 1069 | pce_cd_update(space->machine); |
| 1070 | 1070 | |
| 1071 | if(offset & 0x200 && pce_sys3_card) // emulate Arcade Card |
| 1072 | return pce_cd_acard_w(space,offset,data); |
| 1073 | |
| 1071 | 1074 | switch( offset ) |
| 1072 | 1075 | { |
| 1073 | 1076 | case 0x00: /* CDC status */ |
| r9073 | r9074 | |
| 1199 | 1202 | { |
| 1200 | 1203 | UINT8 data = pce_cd.regs[offset & 0x0F]; |
| 1201 | 1204 | |
| 1205 | logerror("%04X: read from CD interface offset %02X\n", cpu_get_pc(space->cpu), offset ); |
| 1202 | 1206 | pce_cd_update(space->machine); |
| 1203 | 1207 | |
| 1204 | | logerror("%04X: read from CD interface offset %02X\n", cpu_get_pc(space->cpu), offset ); |
| 1208 | if(offset & 0x200 && pce_sys3_card) // emulate Arcade Card |
| 1209 | return pce_cd_acard_r(space,offset); |
| 1210 | |
| 1205 | 1211 | switch( offset ) |
| 1206 | 1212 | { |
| 1207 | 1213 | case 0x00: /* CDC status */ |
| r9073 | r9074 | |
| 1266 | 1272 | return data; |
| 1267 | 1273 | } |
| 1268 | 1274 | |
| 1275 | |
| 1276 | /* |
| 1277 | |
| 1278 | PC Engine Arcade Card emulation |
| 1279 | |
| 1280 | */ |
| 1281 | |
| 1282 | READ8_HANDLER( pce_cd_acard_r ) |
| 1283 | { |
| 1284 | // printf("ACARD access R %04x\n",offset); |
| 1285 | |
| 1286 | if((offset & 0x2e0) == 0x2e0) |
| 1287 | { |
| 1288 | switch(offset & 0x2ef) |
| 1289 | { |
| 1290 | case 0x2ef: return 0x51; |
| 1291 | } |
| 1292 | } |
| 1293 | |
| 1294 | return 0; |
| 1295 | } |
| 1296 | |
| 1297 | WRITE8_HANDLER( pce_cd_acard_w ) |
| 1298 | { |
| 1299 | // printf("ACARD access W %04x %02x\n",offset,data); |
| 1300 | } |