notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use picofe menu, move generic code out of gp2x/
[fceu.git]
/
ppu098.c
diff --git
a/ppu098.c
b/ppu098.c
index
d0a0a49
..
fe0e5c2
100644
(file)
--- a/
ppu098.c
+++ b/
ppu098.c
@@
-86,7
+86,7
@@
static void makeppulut(void)
}
}
}
}
-#if
def ASM_6502
+#if
defined(ASM_6502) && !defined(DEBUG_ASM_6502)
static void asmcpu_update(int32 cycles)
{
// some code from x6502.c
static void asmcpu_update(int32 cycles)
{
// some code from x6502.c
@@
-370,7
+370,7
@@
static void ResetRL(uint8 *target)
Plinef=target;
Pline=target;
firsttile=0;
Plinef=target;
Pline=target;
firsttile=0;
- linestartts=timestamp*48+X
.count
;
+ linestartts=timestamp*48+X
6502_GetCycleCount()
;
tofix=0;
FCEUPPU_LineUpdate098();
tofix=1;
tofix=0;
FCEUPPU_LineUpdate098();
tofix=1;
@@
-489,9
+489,13
@@
static void FASTAPASS(1) RefreshLine098(int lastpixel)
if(!ScreenON && !SpriteON)
{
uint32 tem;
if(!ScreenON && !SpriteON)
{
uint32 tem;
+ int tiles;
tem=Pal[0]|(Pal[0]<<8)|(Pal[0]<<16)|(Pal[0]<<24);
tem|=0x40404040;
tem=Pal[0]|(Pal[0]<<8)|(Pal[0]<<16)|(Pal[0]<<24);
tem|=0x40404040;
- FCEU_dwmemset(Pline,tem,numtiles*8);
+ tiles=numtiles;
+ if(firsttile+tiles > 256/8) tiles=256/8-firsttile;
+ if(tiles > 0)
+ FCEU_dwmemset(Pline,tem,tiles*8);
P+=numtiles*8;
Pline=P;
P+=numtiles*8;
Pline=P;
@@
-695,7
+699,9
@@
static void Fixit1(void)
void MMC5_hb(int); /* Ugh ugh ugh. */
static void DoLine(void)
{
void MMC5_hb(int); /* Ugh ugh ugh. */
static void DoLine(void)
{
+#ifndef GP2X
int x;
int x;
+#endif
uint8 *target=XBuf+scanline*320+32;
if(MMC5Hack && (ScreenON || SpriteON)) MMC5_hb(scanline);
uint8 *target=XBuf+scanline*320+32;
if(MMC5Hack && (ScreenON || SpriteON)) MMC5_hb(scanline);