notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring z80 if code for sms preparation
[picodrive.git]
/
cpu
/
cz80
/
cz80.c
diff --git
a/cpu/cz80/cz80.c
b/cpu/cz80/cz80.c
index
20e8053
..
091e2a5
100644
(file)
--- a/
cpu/cz80/cz80.c
+++ b/
cpu/cz80/cz80.c
@@
-15,7
+15,7
@@
\r
#if PICODRIVE_HACKS
\r
#undef EMU_M68K
\r
\r
#if PICODRIVE_HACKS
\r
#undef EMU_M68K
\r
-#include <
Pico/PicoI
nt.h>
\r
+#include <
pico/pico_i
nt.h>
\r
#endif
\r
\r
#ifndef ALIGN_DATA
\r
#endif
\r
\r
#ifndef ALIGN_DATA
\r
@@
-219,7
+219,10
@@
void Cz80_Reset(cz80_struc *CPU)
#if PICODRIVE_HACKS
\r
static inline unsigned char picodrive_read(unsigned short a)
\r
{
\r
#if PICODRIVE_HACKS
\r
static inline unsigned char picodrive_read(unsigned short a)
\r
{
\r
- return (a < 0x4000) ? Pico.zram[a&0x1fff] : z80_read(a);
\r
+ unsigned long v = z80_read_map[a >> Z80_MEM_SHIFT];
\r
+ if (v & 0x80000000)
\r
+ return ((z80_read_f *)(v << 1))(a);
\r
+ return *(unsigned char *)((v << 1) + a);
\r
}
\r
#endif
\r
\r
}
\r
#endif
\r
\r