From: Daniel Kirschten Date: Tue, 12 May 2020 20:07:33 +0000 (+0200) Subject: Changed the IDs of Am2900Simple/Strict to Am2900Teaching/Expert. X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=96b4263276150f8966a3d663c2699de3ab02e04e Changed the IDs of Am2900Simple/Strict to Am2900Teaching/Expert. --- diff --git a/docs/getting_started.md b/docs/getting_started.md index 987a3d17..e9187fbc 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -36,7 +36,7 @@ Alternatively, you can create a general Project and add the Mograsim nature to t 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) diff --git a/plugins/net.mograsim.logic.model.am2900/plugin.xml b/plugins/net.mograsim.logic.model.am2900/plugin.xml index f679c35c..fbc47b37 100644 --- a/plugins/net.mograsim.logic.model.am2900/plugin.xml +++ b/plugins/net.mograsim.logic.model.am2900/plugin.xml @@ -5,11 +5,11 @@ point="net.mograsim.machine.machine_definition"> + unique_id="Am2900Teaching"> + unique_id="Am2900Expert"> diff --git a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/AbstractAm2900MachineDefinition.java b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/AbstractAm2900MachineDefinition.java index 9ab08f3d..80bce799 100644 --- a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/AbstractAm2900MachineDefinition.java +++ b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/AbstractAm2900MachineDefinition.java @@ -20,8 +20,8 @@ import net.mograsim.machine.registers.RegisterGroup; //(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."; diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java index b7fb0756..1b6c3d8e 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java @@ -24,7 +24,7 @@ public class MograsimNaturePropertyPage extends PropertyPage 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;