Skip to content

Commit

Permalink
quickfixes (needs breakup/cleanup later)
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed May 18, 2024
1 parent 7950495 commit d66500e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pico/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ u32 PicoRead16_floating(u32 a)
// faking open bus
u32 d = (Pico.m.rotate += 0x41);
d ^= (d << 5) ^ (d << 8);
if ((a & 0xff0000) == 0xa10000) d = 0; // MegaCD pulldowns don't work here curiously
if ((a & 0xff0000) == 0xa10000) return d; // MegaCD pulldowns don't work here curiously
return (PicoIn.AHW & PAHW_MCD) ? 0x00 : d; // pulldown if MegaCD2 attached
}

Expand Down
4 changes: 2 additions & 2 deletions pico/mode4.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static void ParseSpritesM4(int scanline)
if (zoomed) h *= 2;
sprite_base = (pv->reg[6] & 4) << (13-2-1);

m = 0;
m = pv->status & SR_C;
memset(sprites_map, 0, sizeof(sprites_map));
for (i = s = 0; i < 64; i++)
{
Expand Down Expand Up @@ -448,7 +448,7 @@ static void ParseSpritesTMS(int scanline)
if (zoomed) h *= 2;
sprite_base = (pv->reg[6] & 0x7) << 11;

m = 0;
m = pv->status & SR_C;
memset(sprites_map, 0, sizeof(sprites_map));
/* find sprites on this scanline */
for (i = s = 0; i < 32; i++)
Expand Down
14 changes: 7 additions & 7 deletions pico/pico.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ void PicoPower(void)
// my MD1 VA6 console has this in IO
PicoMem.ioports[1] = PicoMem.ioports[2] = PicoMem.ioports[3] = 0xff;

// powerup default VDP register values from TMSS BIOS
Pico.video.reg[0] = Pico.video.reg[1] = 0x04;
Pico.video.reg[0xc] = 0x81;
Pico.video.reg[0xf] = 0x02;
SATaddr = 0x0000;
SATmask = ~0x3ff;

Pico.video.hint_irq = (PicoIn.AHW & PAHW_PICO ? 5 : 4);

if (PicoIn.AHW & PAHW_MCD)
Expand All @@ -91,6 +84,13 @@ void PicoPower(void)
PicoPower32x();

PicoReset();

// powerup default VDP register values from TMSS BIOS
Pico.video.reg[0] = Pico.video.reg[1] = 0x04;
Pico.video.reg[0xc] = 0x81;
Pico.video.reg[0xf] = 0x02;
SATaddr = 0x0000;
SATmask = ~0x3ff;
}

PICO_INTERNAL void PicoDetectRegion(void)
Expand Down
2 changes: 1 addition & 1 deletion pico/videoport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ void PicoVideoReset(void)
Pico.m.dirtyPal = 1;

PicoDrawBgcDMA(NULL, 0, 0, 0, 0);
PicoVideoFIFOMode(0, 1);
PicoVideoFIFOMode(Pico.video.reg[1]&0x40, Pico.video.reg[12]&1);
}

void PicoVideoCacheSAT(int load)
Expand Down
2 changes: 1 addition & 1 deletion platform/common/menu_pico.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ static void draw_frame_credits(void)

static const char credits[] =
"PicoDrive v" VERSION "\n"
"(c) notaz, 2006-2013; irixxxx, 2018-2023\n\n"
"(c) notaz, 2006-2013; irixxxx, 2018-2024\n\n"
"Credits:\n"
"fDave: initial code\n"
#ifdef EMU_C68K
Expand Down

0 comments on commit d66500e

Please sign in to comment.