Working Component Management

This commit is contained in:
2025-04-14 15:12:02 +02:00
parent 133ee646d1
commit ca36cffd47
20 changed files with 138 additions and 170 deletions

View File

@ -6,7 +6,7 @@ import fabrik.simulator.pic16f84.interfaces.DataRegisterInterface;
import fabrik.simulator.pic16f84.interfaces.FrontendControllerInterface;
import fabrik.simulator.pic16f84.interfaces.InterruptInterface;
public class Interrupts implements InterruptInterface {
public class Interrupts extends PICComponent implements InterruptInterface {
private final int INTCON = 0xB;
private final int T0IF = 0x2;
private final int ISR = 0x4;
@ -19,14 +19,8 @@ public class Interrupts implements InterruptInterface {
private final int INTE = 0x4;
private final int INTF = 0x1;
private final DataRegisterInterface dataRegister;
private final CommandInterface commands;
private final FrontendControllerInterface frontendController;
public Interrupts (DataRegisterInterface dataRegister, CommandInterface commands, FrontendControllerInterface frontendController) {
this.dataRegister = dataRegister;
this.commands = commands;
this.frontendController = frontendController;
public Interrupts () {
}
public void triggerTMR0(boolean manual) {
@ -73,6 +67,6 @@ public class Interrupts implements InterruptInterface {
@Override
public void initialize(PICComponents picComponents) {
super.initialize(picComponents);
}
}