notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimizations, fixes, hacks, psp, ...
[picodrive.git]
/
cpu
/
cz80
/
cz80.c
diff --git
a/cpu/cz80/cz80.c
b/cpu/cz80/cz80.c
index
f2ab003
..
461b46a
100644
(file)
--- a/
cpu/cz80/cz80.c
+++ b/
cpu/cz80/cz80.c
@@
-13,6
+13,10
@@
#include <string.h>
\r
#include "cz80.h"
\r
\r
#include <string.h>
\r
#include "cz80.h"
\r
\r
+#if PICODRIVE_HACKS
\r
+#include <Pico/PicoInt.h>
\r
+#endif
\r
+
\r
#ifndef ALIGN_DATA
\r
#define ALIGN_DATA __attribute__((aligned(4)))
\r
#endif
\r
#ifndef ALIGN_DATA
\r
#define ALIGN_DATA __attribute__((aligned(4)))
\r
#endif
\r
@@
-203,6
+207,13
@@
void Cz80_Reset(cz80_struc *CPU)
Cz80_Set_Reg(CPU, CZ80_PC, 0);
\r
}
\r
\r
Cz80_Set_Reg(CPU, CZ80_PC, 0);
\r
}
\r
\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
+}
\r
+#endif
\r
\r
/*--------------------------------------------------------
\r
CPU
\8e
À
\8d
s
\r
\r
/*--------------------------------------------------------
\r
CPU
\8e
À
\8d
s
\r