X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pico%2F32x%2Fmemory.c;h=45c192d588f36d6d8d505ac21d83a7899d00eefe;hb=c1931173ab49838b8e6f934b11de8ff0b8fbbcf3;hp=2f314e036389b4ca7409cb073ce74cf6d8ddd45f;hpb=4d5dfee86139e1596228db111ce2f30c22c93ddd;p=picodrive.git diff --git a/pico/32x/memory.c b/pico/32x/memory.c index 2f314e0..45c192d 100644 --- a/pico/32x/memory.c +++ b/pico/32x/memory.c @@ -213,7 +213,7 @@ static u32 p32x_reg_read16(u32 a) } if ((a & 0x30) == 0x30) - return p32x_pwm_read16(a, SekCyclesDoneT()); + return p32x_pwm_read16(a, NULL, SekCyclesDoneT()); out: return Pico32x.regs[a / 2]; @@ -352,7 +352,7 @@ static void p32x_reg_write16(u32 a, u32 d) } // PWM else if ((a & 0x30) == 0x30) { - p32x_pwm_write16(a, d, SekCyclesDoneT()); + p32x_pwm_write16(a, d, NULL, SekCyclesDoneT()); return; } @@ -462,7 +462,7 @@ static u32 p32x_sh2reg_read16(u32 a, int cpuid) return r[a / 2]; } if ((a & 0x30) == 0x30) { - return p32x_pwm_read16(a, sh2_cycles_done_m68k(&sh2s[cpuid])); + return p32x_pwm_read16(a, &sh2s[cpuid], sh2_cycles_done_m68k(&sh2s[cpuid])); } return 0; @@ -538,7 +538,7 @@ static void p32x_sh2reg_write16(u32 a, u32 d, int cpuid) } // PWM else if ((a & 0x30) == 0x30) { - p32x_pwm_write16(a, d, sh2_cycles_done_m68k(&sh2s[cpuid])); + p32x_pwm_write16(a, d, &sh2s[cpuid], sh2_cycles_done_m68k(&sh2s[cpuid])); return; }