-
Notifications
You must be signed in to change notification settings - Fork 31
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
MEGA65: Hardware division gets the remainder wrong #387
Comments
should be remainder (not reminder) |
MEGA65/mega65-rom-public#101 Breaking newsI feel, this is still in the flux, and I should wait what the final solution should be, what I have to follow then. It's also possible that the current Xemu implementation will be the one with MEGA65, so ... |
Describe the bug
if you put
14 00 00 00
and03 00 00 00
in MULTINA and MULTINB,. the result should beAB AA AA AA 06 00 00 00
in the 64 bit DIVOUT register. On xemu (next branch f16e0ae) it is AA in the first byte instead.Used version of the project
next branch f16e0ae
To Reproduce
MONITOR
MFFD3670 FFD367F
AB AA AA AA 06 00 00 00
after>0FFD3770
and press returnMFFD..
press return,check result.Expected behavior
![hwdiv-on-r3hw](https://private-user-images.githubusercontent.com/16632479/261646072-49a98706-9ca2-47ec-8a17-18bc582d2eba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyOTY2NTUsIm5iZiI6MTcxOTI5NjM1NSwicGF0aCI6Ii8xNjYzMjQ3OS8yNjE2NDYwNzItNDlhOTg3MDYtOWNhMi00N2VjLThhMTctMThiYzU4MmQyZWJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDA2MTkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzMmViMWY0MzViMjQ5ZTg4ZGI5ZDVlMWU4NWU4ZWJmNDYwNzVhMjcwMTMwOGUxNzI1ZTA5ZjNhNzY1NTBiODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.L-y0C_xwX5KgOi_klqRV_qnP3vJBhkP6dBwD47jhiV4)
The text was updated successfully, but these errors were encountered: