--- np2/io/gdc_sub.c 2004/02/14 07:56:51 1.11 +++ np2/io/gdc_sub.c 2004/02/19 11:32:12 1.14 @@ -85,7 +85,7 @@ REG8 gdcbitreverse(REG8 data) { #endif -void gdcsub_init(void) { +void gdcsub_initialize(void) { int i; @@ -107,11 +107,11 @@ static void calc_gdcslavewait(UINT dots) SINT32 clk; clk = dots; - if (pccore.baseclock != PCBASECLOCK20) { - clk *= 27648; + if (pccore.cpumode & CPUMODE_8MHZ) { + clk *= 22464; } else { - clk *= 22464; + clk *= 27648; } clk *= pccore.multiple; clk /= 15625; @@ -221,7 +221,7 @@ const VECTDIR *dir; BYTE mulx; if (vect->ope & 0x80) { // SL - pat = (GDCPATREVERSE(pat) << 8) + GDCPATREVERSE(pat >> 8); + pat = (REG16)((GDCPATREVERSE(pat) << 8) + GDCPATREVERSE(pat >> 8)); } gdcpset_prepare(&pset, csrw, 0xffff, ope); multiple = (gdc.s.para[GDC_ZOOM] & 15) + 1;