-
Notifications
You must be signed in to change notification settings - Fork 429
Create a MemoryDomain subclass which wraps IDebuggable.{GetCpuFlagsAndRegisters,SetCpuRegister}
#4471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
YoshiRulz
commented
Sep 25, 2025
MemoryDomain subclass which wraps IDebuggable reg get/setMemoryDomain subclass which wraps IDebuggable.{GetCpuFlagsAndRegisters,SetCpuRegister}
|
I like the concept. No idea about the code tho. |
SuuperW
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
I think it would be better to not modify cores' code. It should be possible to conditionally add the registers domain outside of the core, depending on if it provides the required service.
-
I don't exactly like the inefficiencies here with reading and writing more than necessary, but I suppose there's not a lot you could realistically do about that.
-
I also see
uncheckedin a lot of places. Does this provide any benefit? Since unchecked is default, this seems like unneeded fluff.
src/BizHawk.Emulation.Common/Base Implementations/RegistersMemoryDomain.cs
Outdated
Show resolved
Hide resolved
src/BizHawk.Emulation.Common/Base Implementations/RegistersMemoryDomain.cs
Show resolved
Hide resolved
In
Enabling |