Skip to content

Commit

Permalink
mcd, fix rom access in MD+ page
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Dec 16, 2024
1 parent 6ef4af0 commit d70fed9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pico/cd/megasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void msd_init(void)
Pico_msd.state = 1;
Pico_msd.index = -1;

// enable CD drive
// CD LEDs
s68k_write8(0xff8000, 0x2);

PicoResetHook = msd_reset;
Expand All @@ -201,10 +201,9 @@ static u32 msd_read16(u32 a)
{
u16 d = 0;

a = (u16)a;
if (a >= 0x0f800) {
if ((u16)a >= 0x0f800) {
d = Pico_msd.data[(a&0x7ff)>>1];
} else if (a >= 0xf7f0) {
} else if ((u16)a >= 0xf7f0) {
switch (a&0xe) {
case 0x6: d = 0x5241; break; // RA
case 0x8: d = 0x5445; break; // TE
Expand Down

0 comments on commit d70fed9

Please sign in to comment.