libretro / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
38 stars 60 forks source link

M68k state saving unaligned store #222

Closed bnister closed 8 months ago

bnister commented 8 months ago

The u32 store at + 0x4e was causing an unaligned store exception for the MIPS build https://github.com/libretro/picodrive/blob/570319349588288f64c676123244acdb0be33881/pico/sek.c#L224 It also overwrites part of the value at + 0x50 I believe this should be changed to s16 since it's not being loaded as u32 https://github.com/libretro/picodrive/blob/570319349588288f64c676123244acdb0be33881/pico/sek.c#L267

irixxxx commented 8 months ago

Indeed, you're right. Would you like to make a PR, or should I just fix it?

bnister commented 8 months ago

Whatever's less hassle. I suggest just fixing it then closing the issue

irixxxx commented 8 months ago

I've made a commit to my repo. In with the next merge (RSN).