Fix Flags
This commit is contained in:
@ -295,7 +295,7 @@ public class Commands {
|
||||
|
||||
public static void RRF(int file, int destination) {
|
||||
int fcontent = DataRegister.getRegister(file);
|
||||
int carry = DataRegister.getCarryFlag() << 7;
|
||||
int carry = DataRegister.getCarryFlag();
|
||||
int contentlow = fcontent & 0b1;
|
||||
int result = fcontent >> 1 | carry;
|
||||
DataRegister.setCarryFlag(contentlow);
|
||||
|
||||
Reference in New Issue
Block a user