FIX Stack & IOPorts (MERGED)

This commit is contained in:
2024-05-02 00:31:04 +02:00
parent f1fe3ecd22
commit d7ea62963f
2 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class IOPorts {
}
}
else{
if (DataRegister.getDirectBit(address, bit) == 1) {
if (((trisLatch[address-TRISA] >> bit)&1) == 1){
trisLatch[address-TRISA] -= (int) Math.pow(2, bit);
}
}