notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x: mode2 draw, debug, poll detection
[picodrive.git]
/
pico
/
pico_int.h
diff --git
a/pico/pico_int.h
b/pico/pico_int.h
index
e50d468
..
d73041e
100644
(file)
--- a/
pico/pico_int.h
+++ b/
pico/pico_int.h
@@
-232,6
+232,13
@@
typedef void (z80_write_f)(unsigned int a, unsigned char data);
\r
SH2 msh2, ssh2;
\r
#define ash2_pc() msh2.ppc
\r
\r
SH2 msh2, ssh2;
\r
#define ash2_pc() msh2.ppc
\r
+#define ash2_end_run(after) sh2_icount = after
\r
+
\r
+#define msh2_pc() msh2.ppc
\r
+#define ssh2_pc() ssh2.ppc
\r
+
\r
+#define msh2_reg(x) msh2.r[x]
\r
+#define ssh2_reg(x) ssh2.r[x]
\r
\r
// ---------------------------------------------------------
\r
\r
\r
// ---------------------------------------------------------
\r
\r
@@
-409,6
+416,10
@@
typedef struct
#define P32XV_nFEN (1<< 1)
\r
#define P32XV_FS (1<< 0)
\r
\r
#define P32XV_nFEN (1<< 1)
\r
#define P32XV_FS (1<< 0)
\r
\r
+#define P32XF_68KPOLL (1 << 0)
\r
+#define P32XF_MSH2POLL (1 << 1)
\r
+#define P32XF_SSH2POLL (1 << 2)
\r
+
\r
struct Pico32x
\r
{
\r
unsigned short regs[0x20];
\r
struct Pico32x
\r
{
\r
unsigned short regs[0x20];
\r
@@
-416,6
+427,7
@@
struct Pico32x
unsigned char pending_fb;
\r
unsigned char dirty_pal;
\r
unsigned char pad[2];
\r
unsigned char pending_fb;
\r
unsigned char dirty_pal;
\r
unsigned char pad[2];
\r
+ unsigned int emu_flags;
\r
};
\r
\r
struct Pico32xMem
\r
};
\r
\r
struct Pico32xMem
\r