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

@ -140,7 +140,6 @@ public class Controller_Frontend {
public void initialize() {
ToggleButtonGroup [] allButtons = {bgA0, bgA1, bgA2, bgA3, bgA4, bgA5, bgA6, bgA7, bgB0, bgB1, bgB2, bgB3, bgB4, bgB5, bgB6, bgB7};
for (int i = 0; i<16; i++) {
// GEHT NICHT
ToggleButtonGroupExt.get().addAlwaysOneSelectedSupport(allButtons[i]);
}
}

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);
}
}