notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
idle debug removed, vpath added to Makefiles
[picodrive.git]
/
cpu
/
fame
/
famec_opcodes.h
diff --git
a/cpu/fame/famec_opcodes.h
b/cpu/fame/famec_opcodes.h
index
e1e1e45
..
ecbc056
100644
(file)
--- a/
cpu/fame/famec_opcodes.h
+++ b/
cpu/fame/famec_opcodes.h
@@
-39962,6
+39962,15
@@
RET(14)
}
#ifdef PICODRIVE_HACK
}
#ifdef PICODRIVE_HACK
+#if 0
+#define UPDATE_IDLE_COUNT { \
+ extern int idle_hit_counter; \
+ idle_hit_counter++; \
+}
+#else
+#define UPDATE_IDLE_COUNT
+#endif
+
// BRA
OPCODE(0x6001_idle)
{
// BRA
OPCODE(0x6001_idle)
{
@@
-39974,10
+39983,7
@@
OPCODE(0x6001_idle)
#else
PC += ((s8)(Opcode & 0xFE)) >> 1;
#endif
#else
PC += ((s8)(Opcode & 0xFE)) >> 1;
#endif
- {
- extern int idle_hit_counter;
- idle_hit_counter++;
- }
+ UPDATE_IDLE_COUNT
m68kcontext.io_cycle_counter = 10;
RET(10)
}
m68kcontext.io_cycle_counter = 10;
RET(10)
}
@@
-39987,8
+39993,7
@@
OPCODE(0x6601_idle)
{
if (flag_NotZ)
{
{
if (flag_NotZ)
{
- extern int idle_hit_counter;
- idle_hit_counter++;
+ UPDATE_IDLE_COUNT
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}
@@
-39999,8
+40004,7
@@
OPCODE(0x6701_idle)
{
if (!flag_NotZ)
{
{
if (!flag_NotZ)
{
- extern int idle_hit_counter;
- idle_hit_counter++;
+ UPDATE_IDLE_COUNT
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}