notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cdrom: try to eliminate playback timing drifting
[pcsx_rearmed.git]
/
libpcsxcore
/
r3000a.h
diff --git
a/libpcsxcore/r3000a.h
b/libpcsxcore/r3000a.h
index
ea6f0e7
..
49afcb1
100644
(file)
--- a/
libpcsxcore/r3000a.h
+++ b/
libpcsxcore/r3000a.h
@@
-206,17
+206,19
@@
void new_dyna_before_save(void);
void new_dyna_after_save(void);
void new_dyna_freeze(void *f, int mode);
void new_dyna_after_save(void);
void new_dyna_freeze(void *f, int mode);
-#define new_dyna_set_event(e, c) { \
- s32 c_ = c; \
- u32 abs_ = psxRegs.cycle + c_; \
- s32 odi_ = next_interupt - psxRegs.cycle; \
+#define new_dyna_set_event_abs(e, abs) { \
+ u32 abs_ = abs; \
+ s32 di_ = next_interupt - abs_; \
event_cycles[e] = abs_; \
event_cycles[e] = abs_; \
- if (
c_ < odi_
) { \
- /*printf("%u: next_interupt %
d -> %d (%u)\n", psxRegs.cycle, odi_, c_
, abs_);*/ \
+ if (
di_ > 0
) { \
+ /*printf("%u: next_interupt %
u -> %u\n", psxRegs.cycle, next_interupt
, abs_);*/ \
next_interupt = abs_; \
} \
}
next_interupt = abs_; \
} \
}
+#define new_dyna_set_event(e, c) \
+ new_dyna_set_event_abs(e, psxRegs.cycle + (c))
+
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define _i32(x) *(s32 *)&x
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define _i32(x) *(s32 *)&x