AltairZ80: Removed unnecessary calls to abs()
This commit is contained in:
parent
235ce92ff2
commit
1cc1ca7a41
1 changed files with 2 additions and 2 deletions
|
@ -1488,7 +1488,7 @@ void div_byte(PC_ENV *m, uint8 s)
|
|||
}
|
||||
div = dvd / dvs;
|
||||
mod = dvd % dvs;
|
||||
if (abs(div) > 0xff)
|
||||
if (div > 0xff) // psco changed from if (abs(div) > 0xff)
|
||||
{
|
||||
i86_intr_raise(m,0);
|
||||
return;
|
||||
|
@ -1514,7 +1514,7 @@ void div_word(PC_ENV *m, uint16 s)
|
|||
div = dvd / dvs;
|
||||
mod = dvd % dvs;
|
||||
/* sim_printf("dvd=%x dvs=%x -> div=%x mod=%x\n",dvd, dvs,div, mod);*/
|
||||
if (abs(div) > 0xffff)
|
||||
if (div > 0xffff) // psco changed from if (abs(div) > 0xffff)
|
||||
{
|
||||
i86_intr_raise(m,0);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue