This commit is contained in:
2024-06-03 14:18:39 +02:00
parent 1d89bf16cc
commit c8f23176d2
4 changed files with 13 additions and 11 deletions

View File

@ -44,6 +44,9 @@ public class DataRegister {
dataRegister[TRISB] = 0b11111111;
dataRegister[0x80 + PCLATH] = dataRegister[PCLATH];
dataRegister[0x80 + INTCON] = dataRegister[INTCON];
carryFlag = 0;
zeroFlag = 0;
digitCarryFlag = 0;
IOPorts.resetTRIS();
System.out.println(Arrays.toString(dataRegister));
}
@ -294,7 +297,7 @@ public class DataRegister {
}
public static void determineDigitCarryFlag(int result){
if (result > 0xF){
if (result >> 4 == 1){
setDigitCarryFlag(1);
}
else {