-
Notifications
You must be signed in to change notification settings - Fork 28
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
cr_is_valid是否存在问题? #6
Labels
bug
Something isn't working
Comments
equation314
added a commit
that referenced
this issue
Sep 10, 2023
You are right, fixed by the following expression in 907afda: (!fixed0 | value == !0) && (fixed1 | !value == !0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
函数最终返回
(!fixed0 | value != 0) && (fixed1 | !value != 0)
,但是根据手册,FIXED0应该是所在位为1的,寄存器所在位也为1;
FIXED1应该是所在位为0的,寄存器所在位也为0,
判断结果应该写为(value & fixed0 == fixed0) && (value & !fixed1 == 0)才对吧。
不过这样就无法通过检查了。
我看其他开源项目是,先有一个调整寄存器值的操作。
The text was updated successfully, but these errors were encountered: