volatile unsigned long *gp2x_memregl;\r
static void *gp2x_screens[4];\r
static int screensel = 0;\r
volatile unsigned long *gp2x_memregl;\r
static void *gp2x_screens[4];\r
static int screensel = 0;\r
/* video stuff */\r
void gp2x_video_flip(void)\r
{\r
unsigned short lsw, msw;\r
int addr = gp2x_screenaddrs_use[screensel&3];\r
\r
/* video stuff */\r
void gp2x_video_flip(void)\r
{\r
unsigned short lsw, msw;\r
int addr = gp2x_screenaddrs_use[screensel&3];\r
\r
\r
// since we are using the mmu hack, we must flush the cache first\r
// (the params are most likely wrong, but they seem to work somehow)\r
\r
// since we are using the mmu hack, we must flush the cache first\r
// (the params are most likely wrong, but they seem to work somehow)\r
// set offset\r
gp2x_screenaddrs_use[0] = gp2x_screenaddrs[0] + ln_offs * 320 * bpp;\r
gp2x_screenaddrs_use[1] = gp2x_screenaddrs[1] + ln_offs * 320 * bpp;\r
// set offset\r
gp2x_screenaddrs_use[0] = gp2x_screenaddrs[0] + ln_offs * 320 * bpp;\r
gp2x_screenaddrs_use[1] = gp2x_screenaddrs[1] + ln_offs * 320 * bpp;\r
\r
void gp2x_memcpy_buffers(int buffers, void *data, int offset, int len)\r
{\r
\r
void gp2x_memcpy_buffers(int buffers, void *data, int offset, int len)\r
{\r