Changed some variablenames to fit rules but whatever

This commit is contained in:
WickedJack99
2022-05-08 15:09:45 +02:00
parent 99c7f4d4c6
commit 49f5c23e98
12 changed files with 308 additions and 308 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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) {

View File

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

View File

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

View File

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