3 |
|
* EmulateCycle() function, the same for |
4 |
|
* both 6510 and 6502) |
5 |
|
* |
6 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
6 |
> |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
7 |
|
* |
8 |
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
1071 |
|
v_flag = (data ^ a) & 0x40; |
1072 |
|
if ((data & 0x0f) + (data & 0x01) > 5) |
1073 |
|
a = a & 0xf0 | (a + 6) & 0x0f; |
1074 |
< |
if (c_flag = ((data + (data & 0x10)) & 0x1f0) > 0x50) |
1074 |
> |
if ((c_flag = ((data + (data & 0x10)) & 0x1f0) > 0x50) != 0) |
1075 |
|
a += 0x60; |
1076 |
|
} |
1077 |
|
Last; |