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

Instruction Decoding - Possible Issue #33

Open
caioso opened this issue Apr 3, 2014 · 0 comments
Open

Instruction Decoding - Possible Issue #33

caioso opened this issue Apr 3, 2014 · 0 comments

Comments

@caioso
Copy link

caioso commented Apr 3, 2014

Hello guys! Today I was running a bunch of code with mspsim and I faced an unexpected behavior of the simulator. If you look carefully at the image, it can be seen that Register 7 (R7) is submitted to a byte swap operation (PC=0xFC66h), and there is nothing abnormal at this point. By analyzing two lines below (PC=0xFC6E) it can be seen that the same register is rolled right. If I'm not wrong, the expected value to be stored at Register 7 was 0x5200 but for some reason mspsim stored a null value at it. However, by analyzing the instruction bytes at the left, it can be seen that they actually refer to SXT R7 and not RRA.W R7. Considering that the instruction executed was SXT, the result is reasonable. I think it won't change at the end but I'd like to report this tiny possible issue. I'm using mspsim 0.97 at Ubuntu 13.10.

screen shot 2014-04-03 at 14 08 13

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