implemented Rlf Instruction

This commit is contained in:
Darkress
2023-06-06 01:09:16 +02:00
parent 40b7a4a478
commit 2f8adb70c4
4 changed files with 46 additions and 7 deletions

View File

@@ -153,9 +153,13 @@ public class Memory
memory[0x03] &= 0xFD;
}
public static boolean getCarryBit()
public static int getCarryBit()
{
return (memory[0x03] & 0x01) == 0x01;
if((memory[0x03] & 0x01) == 0x01)
{
return 1;
}
else return 0;
}
public static void setCarryBit()