sonderbefehle

This commit is contained in:
2024-06-03 00:27:53 +02:00
parent 0b163589db
commit ea6cacfa70
5 changed files with 28 additions and 3 deletions

View File

@ -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;