2. Go to the "Project Natures" page, click on "Add...". If a confirmation dialog pops up, confirm.
3. Select "Mograsim Project Nature"; click on "OK".
4. Click on "Apply and Close" and re-open the properties dialog.
-5. Go to the new "Mograsim" page, select "Am2900Simple", click on "Apply and Close".
+5. Go to the new "Mograsim" page, select "Am2900Teaching", click on "Apply and Close".
## Write a MPM file (containing the microprogram)
point="net.mograsim.machine.machine_definition">
<machineDefinitionImplementation
class="net.mograsim.logic.model.am2900.machine.Am2900TeachingMachineDefinition"
- unique_id="Am2900Simple">
+ unique_id="Am2900Teaching">
</machineDefinitionImplementation>
<machineDefinitionImplementation
class="net.mograsim.logic.model.am2900.machine.Am2900ExpertMachineDefinition"
- unique_id="Am2900Strict">
+ unique_id="Am2900Expert">
</machineDefinitionImplementation>
</extension>
//(used for detecting installed machines in plugin.core)
public class AbstractAm2900MachineDefinition implements MachineDefinition
{
- public static final String AM2900_TEACHING_MACHINE_ID = "Am2900Simple";
- public static final String AM2900_EXPERT_MACHINE_ID = "Am2900Strict";
+ public static final String AM2900_TEACHING_MACHINE_ID = "Am2900Teaching";
+ public static final String AM2900_EXPERT_MACHINE_ID = "Am2900Expert";
public static final String AM2900_TEACHING_DESCRIPTION = "Am2900 for teaching purposes.\nAll registers are reset to 0 when starting.";
public static final String AM2900_EXPERT_DESCRIPTION = "Am2900 \"for experts\".\nOnly the \u00b5PC will be reset to 0 when starting."
+ "The microprogram will have to reset the other registers manually, including the PC.";
private static final String WARNING = "Changing the Mograsim machine can completely break your project. Be careful.";
private static final String MACHINE_LABEL = "Machine definition";
private static final String MACHINE_PROPERTY = "net.mograsim.projectMachineId";
- private static final String DEFAULT_MACHINE = "Am2900Simple";// TODO don't hardcode that here!
+ private static final String DEFAULT_MACHINE = "Am2900Teaching";// TODO don't hardcode that here!
private MachineCombo machineSelect;
private Label machineDescription;