1 package net.mograsim.machine.isa;
3 import java.util.Objects;
5 public final class AsmOperation
7 private final String mnemonic;
9 public AsmOperation(String mnemonic)
11 this.mnemonic = Objects.requireNonNull(mnemonic.toLowerCase());
14 public String getMnemonic()
20 public String toString()
28 return mnemonic.hashCode();
32 public boolean equals(Object obj)
36 if (!(obj instanceof AsmOperation))
38 AsmOperation other = (AsmOperation) obj;
39 return mnemonic.equals(other.mnemonic);