trunk/src/mess/machine/psxcd.c
| r20408 | r20409 | |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | #ifdef debug_cdrom_registers |
| 226 | | printf("cdrom: read byte %08x = %02x (PC=%x)\n",addr,ret,machine().device("maincpu")->safe_pc()); |
| 226 | printf("cdrom: read byte %08x = %02x (PC=%x)\n",offset,ret,machine().device("maincpu")->safe_pc()); |
| 227 | 227 | #endif |
| 228 | 228 | |
| 229 | 229 | return ret; |
| r20408 | r20409 | |
| 236 | 236 | WRITE8_MEMBER( psxcd_device::write ) |
| 237 | 237 | { |
| 238 | 238 | #ifdef debug_cdrom_registers |
| 239 | | printf("cdrom: write byte %08x = %02x (PC=%x)\n",addr,byte,machine().device("maincpu")->safe_pc()); |
| 239 | printf("cdrom: write byte %08x = %02x (PC=%x)\n",offset,data,machine().device("maincpu")->safe_pc()); |
| 240 | 240 | #endif |
| 241 | 241 | |
| 242 | 242 | switch (offset&3) |