diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-19 10:52:11 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-19 10:52:11 +0000 |
| commit | 0956549379a239182714ca5f06bb40748e3a54a5 (patch) | |
| tree | f3b4e0b2e5ef1125940ad6ae029ffdf066063484 /libpcsxcore/sio.c | |
| parent | b24d4d3cd394aa86691d69156f3fb108c3537582 (diff) | |
| download | pcsxr-0956549379a239182714ca5f06bb40748e3a54a5.tar.gz | |
Use SDL for sound plugin, reverted the change to BIAS in r48024. (and I'm too lazy to hunt down the bug with x64 dynarec :( feel free to revert this revert if not preferred :P)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48308 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/sio.c')
| -rw-r--r-- | libpcsxcore/sio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index cc179e25..a4b1a491 100644 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -66,14 +66,14 @@ static unsigned int padst; char Mcd1Data[MCD_SIZE], Mcd2Data[MCD_SIZE]; // clk cycle byte -// 4us * 8bits = ((PSXCLK / 1000000) * 32); (linuzappz) +// 4us * 8bits = ((PSXCLK / 1000000) * 32) / BIAS; (linuzappz) // TODO: add SioModePrescaler and BaudReg -#define SIO_INT() { \ - if (!Config.Sio) { \ - psxRegs.interrupt |= 0x80; \ - psxRegs.intCycle[7 + 1] = 400; \ - psxRegs.intCycle[7] = psxRegs.cycle; \ - } \ +static inline void SIO_INT() { + if (!Config.Sio) { + psxRegs.interrupt |= 0x80; + psxRegs.intCycle[7 + 1] = 200; /*271;*/ + psxRegs.intCycle[7] = psxRegs.cycle; + } } void sioWrite8(unsigned char value) { |
