void memset32(int *dest, int c, int count);\r
void spend_cycles(int c); // utility\r
void soft_scale(void *dst, unsigned short *pal, int line_offs, int lines);\r
-void convert2RGB555(unsigned short *dst, unsigned char *src, unsigned short *pal, int count);\r
+void do_clut(void *dst, const void *src, unsigned short *pal, int pixels);\r
\r
bx lr
-@ void convert2RGB555(unsigned short *dst, unsigned char *src, unsigned short *pal, int count);
+@ void do_clut(unsigned short *dst, unsigned char *src, unsigned short *pal, int pixels);
-.global convert2RGB555
+.global do_clut
-convert2RGB555:
+do_clut:
stmfd sp!,{r4-r8,lr}
mov lr, #0xff
mov lr, lr, lsl #1
mov r3, r3, lsr #3
-convert2RGB555_loop:
+do_clut_loop:
ldmia r1!,{r4,r5}
and r6, lr, r4, lsl #1
stmia r0!,{r6,r7,r8,r12}
subs r3, r3, #1
- bne convert2RGB555_loop
+ bne do_clut_loop
ldmfd sp!,{r4-r8,lr}
bx lr
#include "../common/settings.h"
#include "minimal.h"
#include "../libpicofe/fonts.h"
-#include "asmutils.h"
+#include "../arm/asmutils.h"
static char fps_str[32];
static int framesEmulated, framesRendered;
\r
#include "minimal.h"\r
#include "usbjoy.h"\r
-#include "asmutils.h"\r
+#include "../arm/asmutils.h"\r
#include "menu.h"\r
#include "../common/main.h"\r
#include "../libpicofe/fonts.h"\r
\r
#include "minimal.h"\r
#include "usbjoy.h"\r
-#include "asmutils.h"\r
+#include "../arm/asmutils.h"\r
\r
volatile unsigned short *gp2x_memregs;\r
//static\r
#include "dprintf.h"
-#ifdef GP2X
-#include "drivers/gp2x/asmutils.h"
+#ifdef __arm__
+#include "drivers/arm/asmutils.h"
#endif
#define Pal (PALRAM)
static void LineUpdateEnd(uint8 *target)
{
-#ifdef GP2X
+#ifdef __arm__
if(ScreenON || SpriteON) // Yes, very el-cheapo.
{
if(PPU[1]&0x01)
#include "video.h"
#include "input.h"
-#ifdef GP2X
-#include "drivers/gp2x/asmutils.h"
+#ifdef __arm__
+#include "drivers/arm/asmutils.h"
#endif
#define Pal (PALRAM)
void MMC5_hb(int); /* Ugh ugh ugh. */
static void DoLine(void)
{
-#ifndef GP2X
+#ifndef __arm__
int x;
#endif
uint8 *target=XBuf+scanline*320+32;
if(SpriteON)
CopySprites098(target);
-#ifdef GP2X
+#ifdef __arm__
if(ScreenON || SpriteON) // Yes, very el-cheapo.
{
if(PPU[1]&0x01)