Skip to content
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

[Feature Suggestion] Configuration for dumping integers as hex instead of decimal #118

Open
highwaycoder opened this issue Nov 10, 2019 · 0 comments

Comments

@highwaycoder
Copy link

I'm currently writing a C64 emulator in Go, and using spew to dump out the CPU state whenever I hit an instruction I haven't implemented yet, or read from / write to a part of the address space that I haven't emulated yet. Currently I'm translating the decimal output into hex so I can cross-reference with documentation and the ROM disassembly manually, but it occurred to me that a small change to the spew library could add the capability to automate this task, simply by adding an option to always apply a hex format to every int.

I can make a PR for this idea but I wanted to first posit the idea in case either a) it's already possible and I'm just too stupid to figure out how, or b) someone has a compelling reason why this functionality should not be implemented in this library.

Let me know what you think anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant