Skip to content

Commit

Permalink
v 1.4
Browse files Browse the repository at this point in the history
Fixed carry issue
  • Loading branch information
DylanSpeiser committed May 1, 2021
1 parent afc96de commit 8c94b30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CPU.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public void IZY() {
//INSTRUCTIONS
public void ADC() {
fetch();
short temp = (short)((short)a + (short)fetched + (short)(getFlag('C') ? 1 : 0));
short temp = (short)((short)Byte.toUnsignedInt(a) + (short)Byte.toUnsignedInt(fetched) + (short)(getFlag('C') ? 1 : 0));
setFlag('C', temp > 255);
setFlag('Z', (temp & 0x00FF) == 0);
setFlag('N', (temp & 0x80) == 0x80);
Expand Down
2 changes: 1 addition & 1 deletion src/EaterEmulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class EaterEmulator extends JFrame implements ActionListener {
public static EaterEmulator emu;
public static String versionString = "1.3";
public static String versionString = "1.4";

//Swing Things
JPanel p = new JPanel();
Expand Down

0 comments on commit 8c94b30

Please sign in to comment.