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

TSB / TRB Have Unexpected Results #5

Open
herseydj opened this issue May 26, 2021 · 0 comments
Open

TSB / TRB Have Unexpected Results #5

herseydj opened this issue May 26, 2021 · 0 comments

Comments

@herseydj
Copy link

Hello,

When I tried to use the emulator to test some code, I noticed that the TRB opcode gave the correct test result, but it cleared bits it wasn't supposed to touch in the memory location.  The desired result was to set the zero flag based on the test of that 1 bits in the accumulator and the memory location, and clear the bits in the memory location based on the accumulators 1 bits.  The zero flag was set correctly, but the memory location also had all the bits cleared.  I've modified the two functions to split up the test and the change to memory in my local copy, and want to provide the corrected code back
@herseydj herseydj mentioned this issue May 26, 2021
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