Lua - emu.getregister(s) - support A7800, but due to emu7800 usage, flags aren't supported

This commit is contained in:
adelikat 2013-11-11 16:55:08 +00:00
parent 3945ea0e87
commit 8204ee552d
1 changed files with 9 additions and 1 deletions

View File

@ -18,7 +18,15 @@ namespace BizHawk.Emulation
public List<KeyValuePair<string, int>> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
return new List<KeyValuePair<string, int>>
{
new KeyValuePair<string, int>("A", theMachine.CPU.A),
new KeyValuePair<string, int>("P", theMachine.CPU.P),
new KeyValuePair<string, int>("PC", theMachine.CPU.PC),
new KeyValuePair<string, int>("S", theMachine.CPU.S),
new KeyValuePair<string, int>("X", theMachine.CPU.X),
new KeyValuePair<string, int>("Y", theMachine.CPU.Y),
};
}
}
}