- fprintf(log_get(),"cdrom: writing word 0x%.4x at 0x%.8x\n",data,offset);
-#endif
-}
-//////////////////////////////////////////////////////////////////////////////
-//
-//////////////////////////////////////////////////////////////////////////////
-//
-//
-//
-//
-//
-//
-//////////////////////////////////////////////////////////////////////////////
-uint8 cdrom_byte_read(uint32 offset)
-{
- offset&=0xff;
-#ifdef CDROM_LOG
- fprintf(log_get(),"cdrom: reading byte from 0x%.8x\n",offset);
-#endif
- return(cdrom_ram[offset]);
-}
-//////////////////////////////////////////////////////////////////////////////
-//
-//////////////////////////////////////////////////////////////////////////////
-//
-//
-//
-//
-//
-//
-//////////////////////////////////////////////////////////////////////////////
-uint16 cdrom_word_read(uint32 offset)
-{
- offset&=0xff;
-
- uint16 data=0x0000;
-
- if (offset==0x00)
- data=0x0000;
- else
- if (offset==0x02)
- data=0x2000;
- else
- if (offset==0x0a)
- {
- if (cdrom_cmd==0x7001)
- data=cdrom_cmd;
- else
- data=0x0400;
- }
- else
- {
- data=cdrom_ram[offset+0];
- data<<=8;
- data|=cdrom_ram[offset+1];
- }
-#ifdef CDROM_LOG
- fprintf(log_get(),"cdrom: reading word 0x%.4x from 0x%.8x [68k pc=0x%.8x]\n",data,offset,s68000readPC());