fix layout of bsnes registers fetch payload (broken in 36be9e9fc7). fixes #2040

This commit is contained in:
zeromus 2020-05-23 23:46:52 -05:00
parent 5b5b6bd483
commit 831a64c7de
1 changed files with 1 additions and 7 deletions

View File

@ -203,20 +203,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
public delegate void snes_trace_t(uint which, string msg);
[StructLayout(LayoutKind.Explicit)]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct CPURegs
{
[FieldOffset(0)]
public uint pc;
[FieldOffset(4)]
public ushort a, x, y, z, s, d, vector; //7x
[FieldOffset(18)]
public byte p, nothing;
[FieldOffset(20)]
public uint aa, rd;
[FieldOffset(28)]
public byte sp, dp, db, mdr;
[FieldOffset(32)]
public ushort v, h;
}