Previous 199869 Revisions Next

r17643 Tuesday 4th September, 2012 at 19:11:00 UTC by Angelo Salese
Small clean-up
[src/emu/cpu/g65816]g65816.c

trunk/src/emu/cpu/g65816/g65816.c
r17642r17643
620620
621621   cpustate->dvdd = data;
622622
623   if(cpustate->dvdd != 0)
624   {
625      quotient = cpustate->wrdiv / cpustate->dvdd;
626      remainder = cpustate->wrdiv % cpustate->dvdd;
627   }
628   else
629   {
630      quotient = 0xffff;
631      remainder = 0x000c;
632   }
623   quotient = (cpustate->dvdd == 0) ? 0xffff : cpustate->wrdiv / cpustate->dvdd;
624   remainder = (cpustate->dvdd == 0) ? 0x000c : cpustate->wrdiv % cpustate->dvdd;
633625
634626   cpustate->rddiv = quotient;
635627   cpustate->rdmpy = remainder;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team