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 committed 2023-06-06 02:22:29 +02:00
1 parent 40b7a4a478
commit 01bd5acb46
4 files changed
+46 -7

No files matched your search

@@ -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()