import java.util.Collections;
import java.util.List;
+import net.mograsim.logic.model.am2900.machine.registers.InstrRegister;
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);
- // TODO IR, PC/BZ...
+ unsortedRegistersModifiable.add(InstrRegister.instance);
+ // TODO PC/BZ...
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 InstrRegister extends HighLevelStateBasedRegister implements Am2900Register
+{
+ public static final InstrRegister instance = new InstrRegister();
+
+ private InstrRegister()
+ {
+ super("IR", "ir.q", 16);
+ }
+}
\ No newline at end of file