Package iota

Class NMarvinLoad


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

    • rX

      public NPhysicalRegister rX
      Where to load.
    • rY

      public NPhysicalRegister rY
      Base memory address.
    • N

      public int N
      Offset (from base memory address) of the value to load (-1 if irrelevant, ie, if mnemonic is popr).
  • Constructor Details

    • NMarvinLoad

      public NMarvinLoad(String mnemonic, NPhysicalRegister rX, NPhysicalRegister rY, int N)
      Constructs an NMarvinLoad object.
      Parameters:
      mnemonic - instruction mnemonic.
      rX - where to load.
      rY - Base memory address.
      N - offset (from base memory address) of the value to load.
  • 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.