notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
partial gmv implementation
[picodrive.git]
/
Pico
/
Memory.c
diff --git
a/Pico/Memory.c
b/Pico/Memory.c
index
d3b931c
..
3104eb4
100644
(file)
--- a/
Pico/Memory.c
+++ b/
Pico/Memory.c
@@
-267,13
+267,16
@@
u32 OtherRead16(u32 a, int realsize)
}
\r
// |=0x80 for Shadow of the Beast & Super Offroad; rotate fakes next fetched instruction for Time Killers
\r
if (a==0xa11100) {
\r
}
\r
// |=0x80 for Shadow of the Beast & Super Offroad; rotate fakes next fetched instruction for Time Killers
\r
if (a==0xa11100) {
\r
- extern int z80stopCycle; // TODO: tidy
\r
d=Pico.m.z80Run&1;
\r
d=Pico.m.z80Run&1;
\r
+#if 0
\r
if (!d) {
\r
if (!d) {
\r
+ // do we need this?
\r
+ extern int z80stopCycle; // TODO: tidy
\r
int stop_before = SekCyclesDone() - z80stopCycle;
\r
int stop_before = SekCyclesDone() - z80stopCycle;
\r
- if (stop_before > 0 && stop_before <= 16
*2
) // Gens uses 16 here
\r
+ if (stop_before > 0 && stop_before <= 16) // Gens uses 16 here
\r
d = 1; // bus not yet available
\r
}
\r
d = 1; // bus not yet available
\r
}
\r
+#endif
\r
d=(d<<8)|0x8000|Pico.m.rotate++;
\r
dprintf("get_zrun: %04x [%i|%i] @%06x", d, Pico.m.scanline, SekCyclesDone(), SekPc);
\r
goto end; }
\r
d=(d<<8)|0x8000|Pico.m.rotate++;
\r
dprintf("get_zrun: %04x [%i|%i] @%06x", d, Pico.m.scanline, SekCyclesDone(), SekPc);
\r
goto end; }
\r
@@
-569,7
+572,9
@@
static void CPU_CALL PicoWrite8(u32 a,u8 d)
// dprintf("w8 : %06x, %02x @%06x", a&0xffffff, d, SekPc);
\r
\r
\r
// dprintf("w8 : %06x, %02x @%06x", a&0xffffff, d, SekPc);
\r
\r
\r
- if ((a&0xe00000)==0xe00000) { u8 *pm=(u8 *)(Pico.ram+((a^1)&0xffff)); pm[0]=d; return; } // Ram
\r
+ if ((a&0xe00000)==0xe00000) {
\r
+ if((a&0xffff)==0xf62a) dprintf("(f62a) = %02x [%i|%i] @ %x", d, Pico.m.scanline, SekCyclesDone(), SekPc);
\r
+ u8 *pm=(u8 *)(Pico.ram+((a^1)&0xffff)); pm[0]=d; return; } // Ram
\r
\r
a&=0xffffff;
\r
OtherWrite8(a,d,8);
\r
\r
a&=0xffffff;
\r
OtherWrite8(a,d,8);
\r