sonderbefehle
This commit is contained in:
@ -42,6 +42,8 @@ public class Controller_Frontend {
|
||||
|
||||
private static double executionTimeMultiplier = 1;
|
||||
|
||||
|
||||
|
||||
public static double getExecutionTimeMultiplier(){
|
||||
return executionTimeMultiplier;
|
||||
}
|
||||
@ -72,6 +74,9 @@ public class Controller_Frontend {
|
||||
@FXML
|
||||
private Label pclLabel;
|
||||
|
||||
@FXML
|
||||
private Label PrescalerLabel;
|
||||
|
||||
@FXML
|
||||
private Label statusLabel;
|
||||
|
||||
@ -101,6 +106,8 @@ public class Controller_Frontend {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static volatile boolean isAutoRunActive = false;
|
||||
private static volatile boolean isSleeping = false;
|
||||
|
||||
@ -409,10 +416,13 @@ public class Controller_Frontend {
|
||||
|
||||
@FXML
|
||||
public void toggleWatchdog(ActionEvent actionEvent) {
|
||||
if (wdtCheck.isSelected())
|
||||
if (wdtCheck.isSelected()){
|
||||
WatchdogTimer.enable();
|
||||
else
|
||||
|
||||
}
|
||||
else{
|
||||
WatchdogTimer.disable();
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
||||
@ -10,6 +10,12 @@ public class PreScaler {
|
||||
return DataRegister.getDirectBit(OPTION, PSA) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static int getScaler() {
|
||||
return scaler;
|
||||
}
|
||||
|
||||
public static int getFactor () {
|
||||
int scale = DataRegister.getDirectRegister(OPTION) & 0b111;
|
||||
int timer = isPrescalerOnTimer() ? 1 : 0;
|
||||
|
||||
@ -79,13 +79,16 @@ public class Table {
|
||||
Label fsrLabel = new Label("FSR: 0x" + format(Integer.toHexString(DataRegister.getRegister(DataRegister.getFSR())).toUpperCase()));
|
||||
Label pclathLabel = new Label("PCLATH: 0x" + format(Integer.toHexString(DataRegister.getRegister(DataRegister.getPCLATH())).toUpperCase()));
|
||||
Label intconLabel = new Label("INTCON: 0x" + format(Integer.toHexString(DataRegister.getRegister(DataRegister.getINTCON())).toUpperCase()));
|
||||
Label wRegisterLabel = new Label("W Register: 0x" + format(Integer.toHexString(Commands.get_wRegister()).toUpperCase()));
|
||||
Label PCLabel = new Label("PC: 0x" + format(Integer.toHexString(DataRegister.getPC()).toUpperCase()));
|
||||
Label Prescaler = new Label("Prescaler: " + format(Integer.toHexString(PreScaler.getScaler())).toUpperCase());
|
||||
|
||||
|
||||
|
||||
|
||||
// Erstelle einen VBox, um die TableView und Labels anzuzeigen
|
||||
VBox table = new VBox();
|
||||
table.getChildren().addAll(tableView, pclLabel, statusLabel, fsrLabel, pclathLabel, intconLabel);
|
||||
table.getChildren().addAll(tableView, pclLabel, statusLabel, fsrLabel, pclathLabel, intconLabel, wRegisterLabel, PCLabel, Prescaler);
|
||||
VBox.setMargin(tableView, new Insets(0, 0, 0, 0));
|
||||
|
||||
return table;
|
||||
|
||||
Reference in New Issue
Block a user