X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2FRegister.java;h=4bcb7f2532bc6a7116ba3278bd3905c5c34739a2;hb=4ba119cab03498736851e6f3f32eec1957839a2e;hp=5ecf1cfc17fe493190bd6e9a3eef3d6d48ed7184;hpb=928282b9447dc92ead9f805ff7abcac46d6a137b;p=Mograsim.git
diff --git a/net.mograsim.machine/src/net/mograsim/machine/Register.java b/net.mograsim.machine/src/net/mograsim/machine/Register.java
index 5ecf1cfc..4bcb7f25 100644
--- a/net.mograsim.machine/src/net/mograsim/machine/Register.java
+++ b/net.mograsim.machine/src/net/mograsim/machine/Register.java
@@ -3,17 +3,16 @@ package net.mograsim.machine;
import java.util.Set;
/**
- * A register in a machine is defined by this interface. A hardware register may
- * have {@link Register#names() named sub-registers}.
+ * A register in a machine is defined by this interface. A hardware register may have {@link Register#names() named sub-registers}.
*
*
* @author Christian Femers
*
*/
-public interface Register {
+public interface Register
+{
/**
- * The unique identifier of the register. This does not have to be the display
- * name or name in the assembly language.
+ * The unique identifier of the register. This does not have to be the display name or name in the assembly language.
*
* @return the registers id as case sensitive String
* @author Christian Femers
@@ -21,21 +20,17 @@ public interface Register {
String id();
/**
- * The name(s) of this register. This is the displayed name and the name used in
- * the assembly language. All names of all registers must be case-insensitive
- * unique. A register can have multiple names if these names address different
- * regions (but still have a common hardware structure), e.g. EAX
,
- * AX
, AL
, AH
.
+ * The name(s) of this register. This is the displayed name and the name used in the assembly language. All names of all registers must
+ * be case-insensitive unique. A register can have multiple names if these names address different regions (but still have a common
+ * hardware structure), e.g. EAX
, AX
, AL
, AH
.
*
- * @return all the names of regions addressing this register, must be
- * case-insensitive.
+ * @return all the names of regions addressing this register, must be case-insensitive.
* @author Christian Femers
*/
Set names();
/**
- * Returns the complete width in bits of the underlying hardware structure the
- * register and possible sub-registers are part of.
+ * Returns the complete width in bits of the underlying hardware structure the register and possible sub-registers are part of.
*
* @param name the name of the register
* @return the width of the (sub-)register in bits.