检查一个数字是否落在32/位范围内的添加操作是ARM
如何检查运算后NBC数字是否在32位范围内 ADD RO,RO,R1, LSL#1
我读到它可以用 C 标志进行测试,该标志确定此类操作中是否存在溢出,但我不完全确定如何设置“if”条件,例如如果有已经溢出,我应该从寄存器中删除该值并在其中写入其他内容。
How can I check whether the NBC number falls within 32-bit range after an operation
ADD RO,RO,R1, LSL#1
I have read that it can be tested with a C flag which determines whether there is an overflow in such operation but I am not entirely sure how to set the "if" condition, e.g. if there has been overflow I should remove the value from the register and write something else inside it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论