implemented Rlf Instruction (#20)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#20
This commit was merged in pull request #20.
This commit is contained in:
darkress
2023-06-06 02:22:29 +02:00
parent 40b7a4a478
commit 01bd5acb46
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()