[hatari-devel] Division overflow handling |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Division overflow handling
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sun, 25 Feb 2018 22:44:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1519595070; s=strato-dkim-0002; d=seimet.de; h=Content-Type:Message-ID:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=cZW3kkINW8qDOzMjC+bCczzc3pCKU8J99+tWWcoCgO0=; b=CWPFpCoQsUpXp5Dh39NrjNNWOUSUOb+59VQ52rfbWO1ZDyZboNoTygmgrdVN/E+6wE RKhICQVNP4L7QRFXkoA5/pQL7OLsDLXieYrF978D5RbSfdbUER2LXAUutdlnCRUcaDNI Z5gdC0A4dGgbn0Td9TIctBZqpAvFIofpWOYSXv5KrJ2b9cG97xmUNsNBkLsYoPYnLz3A q9vb4EXCYNQqK30AtcmiIJ/x/bQkNt8zHM20y0khJgmwJaOEXhp8ot19dpDluSDTz4qH SBR1Smd+B66aCsgAQ6UiV1fvP/4O0G7X4sEW1bvgk0Fu3Gq2HgMCqHLIv7MdLikzXRb5 NxhQ==
Hi,
I wonder whether the V flag is treated correctly in 68030 mode when there is
an overflow. This is my code:
move.l #1000000,d2
divu #10,d2
bvc.s l1
move.l #100000,d2
l1: ...
I don't think this code (bvc) is executed correctly. Unfortunately I have
problems debugging it, see my previous mail.
Best regards
Uwe