View Single Post
Old 14 May 2017, 20:15   #17
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by a/b View Post
Are these correct, am I missing something, or am I perhaps overcomplicating it?
Seems your assumptions are correct. Asking for "exact" same work was probably a little bit overkill...

I don't regard "correct" handling of invalid values as a target. What's correct anyway, the result is totally bogus in these cases - which are not even detected. A more correct implementation would have been to set V and not alter the output - like DIV does - but heck, it's too late for that.
You may care about these values if you want, however that's just for the fun.

Same story for N,V.
Do all 680x0 behave the same in regard to these two bits and invalid values anyway ? If they don't, problem solved.


Quote:
Originally Posted by Thorham View Post
It would be more interesting to do something that yields useful code.
Create your own compo then.

For this one, at least next time someone tells me bcd instructions are useless, i'll reply "okay but look at how hard it is to do their job when you don't have them"
meynaf is offline  
 
Page generated in 0.04365 seconds with 11 queries