Fix for GitHub Issue #9

This commit is contained in:
Seth Morabito committed 2014-08-11 13:36:08 -07:00
1 parent 7c2a007928
commit 22a9207dca
2 files changed
+20 -1

No files matched your search

+1 -1
View File
@@ -872,7 +872,7 @@ public class Cpu implements InstructionTable {
*/
private int lsr(int m) {
setCarryFlag((m & 0x01) != 0);
return (m >>> 1) & 0xff;
return (m & 0xff) >>> 1;
}
/**