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

dashmips is unable to correctly increment memory addresses. #23

Open
rexbeck opened this issue Oct 16, 2023 · 1 comment
Open

dashmips is unable to correctly increment memory addresses. #23

rexbeck opened this issue Oct 16, 2023 · 1 comment

Comments

@rexbeck
Copy link

rexbeck commented Oct 16, 2023

When dashmips stores a value in a register, it's stored as decimal. This is a problem when storing memory addresses for later.
Say I stored a memory address 0x8000 0046. If I increment this by 4, the address I'm looking to reach is 0x8000 004a. Instead I end up getting 0x8000 0050.
It's possible that there's a setting to change this but I couldn't find it anywhere.

@nbbeeken
Copy link
Owner

Hey thanks for reaching out, can you share the snippet of mips incrementing the address/value in the register?

The values in registers are stored as python integers so I would expect the math to not be dependent on decimal vs hex formatting. Perhaps there is a printing issue while the runtime values are correct?

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

2 participants