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

@ -14,7 +14,7 @@ import java.nio.file.Paths;
import fabrik.simulator.pic16f84.interfaces.*;
public class EEPROM implements EEPROMInterface {
public class EEPROM extends PICComponent implements EEPROMInterface {
private final int EEDATA = 0x08;
private final int EEADR = 0x09;
private final int EECON1 = 0x88;
@ -28,15 +28,11 @@ public class EEPROM implements EEPROMInterface {
private boolean readControl = false;
private boolean writeControl = false;
private boolean [] eecon2stages = {false, false};
private final DataRegisterInterface dataRegister;
private final CommandInterface commands;
private double startTime;
public EEPROM (DataRegisterInterface dataRegister, CommandInterface commands){
this.dataRegister = dataRegister;
this.commands = commands;
public EEPROM (){
}
public long read (int address) {
@ -176,6 +172,7 @@ public class EEPROM implements EEPROMInterface {
@Override
public void initialize(PICComponents picComponents) {
System.out.println("EEPROM");
super.initialize(picComponents);
}
}