+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
/*
* <random_info=mem_map>
* 00000000-029fffff linux (42MB)
static void gp2x_video_wait_vsync_(void)
{
- while (!(memregl[0x308c>>2] & (1 << 10)));
+ while (!(memregl[0x308c>>2] & (1 << 10)))
spend_cycles(128);
memregl[0x308c>>2] |= 1 << 10;
}
rate = decode_pll(clk0_src ? memregl[0xf008>>2] : memregl[0xf004>>2]);
// apply divisors
- div = ((memregl[0xdbc4>>2] >> 4) & 0x1f) + 1;
+ div = ((memregl[0xdbc4>>2] >> 4) & 0x3f) + 1;
rate /= div;
- div = ((memregl[0xdbc8>>2] >> 4) & 0x1f) + 1;
+ div = ((memregl[0xdbc8>>2] >> 4) & 0x3f) + 1;
rate /= div;
rate /= 64;