import java.util.List;
import net.mograsim.logic.model.am2900.machine.registers.InstrRegister;
+import net.mograsim.logic.model.am2900.machine.registers.PCRegister;
import net.mograsim.logic.model.am2900.machine.registers.muInstrRegister;
import net.mograsim.logic.model.am2900.machine.registers.am2901.Am2901RegisterGroup;
import net.mograsim.logic.model.am2900.machine.registers.am2904.Am2904RegisterGroup;
List<Register> unsortedRegistersModifiable = new ArrayList<>();
unsortedRegistersModifiable.add(muInstrRegister.instance);
unsortedRegistersModifiable.add(InstrRegister.instance);
- // TODO PC/BZ...
+ unsortedRegistersModifiable.add(PCRegister.instance);
unsortedRegisters = Collections.unmodifiableList(unsortedRegistersModifiable);
List<RegisterGroup> registerGroupsModifiable = new ArrayList<>();
registerGroupsModifiable.add(Am2901RegisterGroup.instance);
--- /dev/null
+package net.mograsim.logic.model.am2900.machine.registers;
+
+import net.mograsim.logic.model.am2900.machine.registers.Am2900Register;
+import net.mograsim.machine.registers.HighLevelStateBasedRegister;
+
+public class PCRegister extends HighLevelStateBasedRegister implements Am2900Register
+{
+ public static final PCRegister instance = new PCRegister();
+
+ private PCRegister()
+ {
+ super("PC", "pc.q", 16);
+ }
+}
\ No newline at end of file