EASy68K
http://easy68k.com/EASy68Kforum/

fun with DIVS.W
http://easy68k.com/EASy68Kforum/viewtopic.php?f=8&t=1180
Page 1 of 1

Author:  PiCiJi [ Tue Mar 26, 2013 9:19 pm ]
Post subject:  fun with DIVS.W

MOVE.L #$80000000, D1
DIVS.W #$ffff, D1

-2.147.483.648 / -1 = 2.147.483.648

the result can not be stored in int32. EASy68K throws an exception. I assume its an arithmetic exception.
The real cpu sets overflow flag.

Author:  PiCiJi [ Tue Mar 26, 2013 9:37 pm ]
Post subject:  Re: fun with DIVS.W

MOVE.L #$65, D1
MOVE #$1f, CCR
DIVS.W #$8765, D1

EASy68K sets the n flag but the result is zero.

Author:  profkelly [ Sat Mar 30, 2013 1:49 pm ]
Post subject:  Re: fun with DIVS.W

Corrected in Sim68K v5.12.29

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/