Working Component Management
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user