DIVS overflow question...
If I have something like:
move.l #$00800000,d0 divs d1,d0 if for example, d1 was 3, then an overflow would be detected (as the result does not fit in a word size), and the V flag is set. According to the docs i have read, it says that on overflow, the operands remain unchanged... so can I assume that d0 still contains #$00800000 after the overflow ? Or are there any cases where d0 might change even if an overflow happens ? |
Quote:
Correct, yes. |
Ah cool.. handy to know, and in this case, the low word will remain zero which is the desired outcome of an overflow anyway, so no need to handle overflow case :)
|
All times are GMT +2. The time now is 05:21. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.