FIX Stack & IOPorts (MERGED)
This commit is contained in:
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user