Previous 15994 Revisions Next

r11706 Sunday 29th May, 2011 at 14:01:19 UTC by Angelo Salese
Temp made CD speed to be x1 rather than x2, helps with compatibility
[ROOT]makefile
[src/mame/machine]stvcd.c

src/mame/machine/stvcd.c
r11705r11706
4242#define MAX_FILTERS   (24)
4343#define MAX_BLOCKS   (200)
4444#define MAX_DIR_SIZE   (128*1024)
45#define CD_SPEED 75*1 /* TODO: should be x2 */
4546
4647typedef struct
4748{
r11705r11706
204205   cr3 = (cd_curfad>>16)&0xff;
205206   cr4 = cd_curfad;
206207
207   timer.adjust(attotime::from_hz(150));
208   timer.adjust(attotime::from_hz(CD_SPEED));
208209}
209210
210211// global functions
r11705r11706
281282   }
282283
283284   sector_timer = machine.device<timer_device>("sector_timer");
284   sector_timer->adjust(attotime::from_hz(150));   // 150 sectors / second = 300kBytes/second
285   sector_timer->adjust(attotime::from_hz(CD_SPEED));   // 150 sectors / second = 300kBytes/second
285286}
286287
287288static blockT *cd_alloc_block(UINT8 *blknum)
r11705r11706
792793         // and do the disc I/O
793794         // make sure it doesn't come in too early
794795         sector_timer->reset();
795         sector_timer->adjust(attotime::from_hz(150));   // 150 sectors / second = 300kBytes/second
796         sector_timer->adjust(attotime::from_hz(CD_SPEED));   // 150 sectors / second = 300kBytes/second
796797         break;
797798
798799      case 0x1100: // disc seek
r11705r11706
12991300         playtype = 1;
13001301
13011302         // and do the disc I/O
1302//          sector_timer->adjust(attotime::from_hz(150));  // 150 sectors / second = 300kBytes/second
1303//          sector_timer->adjust(attotime::from_hz(CD_SPEED));  // 150 sectors / second = 300kBytes/second
13031304         break;
13041305
13051306      case 0x7500:
makefile
r11705r11706
212212BUILD_ZLIB = 1
213213
214214# uncomment next line to include the symbols
215# zSYMBOLS = 1
215# SYMBOLS = 1
216216
217217# specify symbols level or leave commented to use the default
218218# (default is SYMLEVEL = 2 normally; use 1 if you only need backtrace)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team