Previous 15994 Revisions Next

r8439 Thursday 8th July, 2010 at 08:56:05 UTC by Miodrag Milanović
Forgot one file.
[src/mess/video]m6847.c

src/mess/video/m6847.c
r8438r8439
17701770
17711771   const m6847_variant *v;
17721772   UINT32 frequency;
1773   attoseconds_t period, frame_period, cpu0_clock_period = 0;
1773   attoseconds_t period, frame_period;
17741774   double total_scanlines;
17751775
17761776   /* validate some basic stuff */
r8438r8439
18261826      * ((UINT32) (v->clocks_per_scanline * FACTOR_CLOCKS_PER_SCANLINE));
18271827   period = ATTOSECONDS_PER_SECOND / frequency;
18281828
1829   /* choose CPU clock, if specified */
1830   if (cfg->cpu0_timing_factor > 0)
1831   {
1832      cpu0_clock_period = period * cfg->cpu0_timing_factor * GROSS_FACTOR;
1833      cpu_set_clock(device->machine->firstcpu, ATTOSECONDS_PER_SECOND / cpu0_clock_period);
1834   }
1835
18361829   /* calculate timing */
18371830   total_scanlines = v->vblank_scanlines
18381831      + v->top_border_scanlines
r8438r8439
18581851   {
18591852      logerror("m6847_init():\n");
18601853      logerror("\tclock:      %30s sec\n", attotime_string(attotime_make(0, period * GROSS_FACTOR), ATTOTIME_STRING_PRECISION));
1861      if (cpu0_clock_period > 0)
1862         logerror("\tCPU0 clock: %30s sec\n", attotime_string(attotime_make(0, cpu0_clock_period), ATTOTIME_STRING_PRECISION));
18631854      logerror("\tscanline:   %30s sec\n", attotime_string(attotime_make(0, mc6847->scanline_period), ATTOTIME_STRING_PRECISION));
18641855      logerror("\tfield sync: %30s sec\n", attotime_string(attotime_make(0, mc6847->field_sync_period), ATTOTIME_STRING_PRECISION));
18651856      logerror("\thorz sync:  %30s sec\n", attotime_string(attotime_make(0, mc6847->horizontal_sync_period), ATTOTIME_STRING_PRECISION));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team