Changed some variablenames to fit rules but whatever
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -147,8 +147,8 @@ public class MyControlModel implements ActionListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
oPIC.getEeprom().setProgramLines(aiProgramLines);
|
||||
abBreakpoints = new boolean[oPIC.getEeprom().getLengthProgramMemory()];
|
||||
oPIC.getProgramMemory().setProgramLines(aiProgramLines);
|
||||
abBreakpoints = new boolean[oPIC.getProgramMemory().getLengthProgramMemory()];
|
||||
}
|
||||
|
||||
private void controlBreakpoints(ActionEvent e) {
|
||||
|
||||
@@ -242,23 +242,23 @@ public class MyControlView {
|
||||
}
|
||||
|
||||
public void setTestFileTable() {
|
||||
if (oPIC.getEeprom().getProgramLines() != null) {
|
||||
if (oPIC.getProgramMemory().getProgramLines() != null) {
|
||||
if (oPIC.getRam().get_LastProgramcounter() > -1) {
|
||||
int[] aiProgList = oPIC.getEeprom().getProgramLines();
|
||||
int[] aiProgList = oPIC.getProgramMemory().getProgramLines();
|
||||
for (int i = 0; i < aiProgList.length; i++) {
|
||||
oMyView.getGUITestFileTable().unmarkLine(aiProgList[i]);
|
||||
}
|
||||
|
||||
int iProgC = oPIC.getRam().get_Programcounter();
|
||||
|
||||
oMyView.getGUITestFileTable().markLine(oPIC.getEeprom().getIndex(iProgC));
|
||||
oMyView.getGUITestFileTable().markLine(oPIC.getProgramMemory().getIndex(iProgC));
|
||||
|
||||
} else {
|
||||
int[] aiProgList = oPIC.getEeprom().getProgramLines();
|
||||
int[] aiProgList = oPIC.getProgramMemory().getProgramLines();
|
||||
for (int i = 0; i < aiProgList.length; i++) {
|
||||
oMyView.getGUITestFileTable().unmarkLine(aiProgList[i]);
|
||||
}
|
||||
oMyView.getGUITestFileTable().markLine(oPIC.getEeprom().getProgramLine(0));
|
||||
oMyView.getGUITestFileTable().markLine(oPIC.getProgramMemory().getProgramLine(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -148,7 +148,7 @@ public class MyModel extends Thread {
|
||||
private void step() {
|
||||
InstructionDecoder oBitmask = new InstructionDecoder();
|
||||
//Makes one step through the eeprom.
|
||||
oBitmask.decodeAndExecuteCommand(oPIC.getEeprom().getElement(oPIC.getRam().get_Programcounter()), oPIC);
|
||||
oBitmask.decodeAndExecuteCommand(oPIC.getProgramMemory().getElement(oPIC.getRam().get_Programcounter()), oPIC);
|
||||
//Update view
|
||||
qDataToView.add(oPIC);
|
||||
}
|
||||
|
||||
@@ -230,9 +230,9 @@ public class ReadProgramFile {
|
||||
int iIndex = oPCodeAsInt[i][2];
|
||||
|
||||
//asCommands are written into EEPROM
|
||||
oPIC.getEeprom().setElementXToValueY(memoryAdress, command);
|
||||
oPIC.getProgramMemory().setElementXToValueY(memoryAdress, command);
|
||||
|
||||
oPIC.getEeprom().setElementXToIndexY(memoryAdress, iIndex);
|
||||
oPIC.getProgramMemory().setElementXToIndexY(memoryAdress, iIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user