Package iota

Class NMarvinStore


class NMarvinStore extends NMarvinInstruction
Representation of an instruction for storing a value from register into memory.
  • Field Details

    • rX

      public NPhysicalRegister rX
      Value to store.
    • rY

      public NPhysicalRegister rY
      Base memory address.
    • N

      public int N
      Offset (from base memory address) where the value will be stored (-1 if irrelevant, ie, if mnemonic is pushr).
  • Constructor Details

    • NMarvinStore

      public NMarvinStore(String mnemonic, NPhysicalRegister rX, NPhysicalRegister rY, int N)
      Constructs an NMarvinStore object.
      Parameters:
      mnemonic - instruction mnemonic.
      rX - what to store.
      rY - base memory address.
      N - offset (from base memory address) where the value will be stored.
  • Method Details

    • write

      public void write(PrintWriter out)
      Writes this instruction to the given output stream.
      Specified by:
      write in class NMarvinInstruction
      Parameters:
      out - output stream.