-
Notifications
You must be signed in to change notification settings - Fork 230
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
Store Byte with Bitmap display #47
Comments
I'm not considering this a bug because the behavior is the same in MARS and the help isn't quite specific enough to say that The issue is that the pixels are updated by memory updates, but only expect them to be from word sized updates. The relevant code is rars/rars/tools/BitmapDisplay.java Lines 464 to 473 in 8c2ede5
Getting this to work with |
Addresses #47. I thought about using a bit mask to do this instead, but I think most potential contributors wouldn't be comfortable with that. Instead I reference memory which is technical debt as I plan to remove all such references at some point.
I ended up implementing this in a slightly different way than I explained. The shifting based solution would zero out the non written areas which I don't think is what most users would expect. Masking out only the bytes would work, but used too much bit twiddling for my liking. I decided to just access the relevant word from memory and send that to the display. An updated build can be found at https://github.com/TheThirdOne/rars/releases/tag/continuous. Please confirm that it works as you would expect now. |
Works fine, thanks!! I have test with sh and sb and the result is correct!! |
Thanks for the report. |
I found an problem working accessing bytes to color bitmap display:
In this code i am trying to color two points with red. For the first dot, i use SW and works fine, but when i try to use SB to the second dot, in the display appears that the point is Blue.
Display Config:
Result:
The memory is right:
The text was updated successfully, but these errors were encountered: