Class MemoryAccessNotice

java.lang.Object
mars.mips.hardware.AccessNotice
mars.mips.hardware.MemoryAccessNotice

public class MemoryAccessNotice extends AccessNotice
Object provided to Observers of runtime access to MIPS memory. Observer can get the access type (R/W), address and length in bytes (4,2,1).
Version:
July 2005
Author:
Pete Sanderson
  • Constructor Details

    • MemoryAccessNotice

      public MemoryAccessNotice(int type, int address, int value)
      Constructor will be called only within this package, so assume address is in valid range.
  • Method Details

    • getAddress

      public int getAddress()
      Fetch the memory address that was accessed.
    • getLength

      public int getLength()
      Fetch the length in bytes of the access operation (4,2,1).
    • getValue

      public int getValue()
      Fetch the value of the access operation (the value read or written).
    • toString

      public String toString()
      String representation indicates access type, address and length in bytes
      Overrides:
      toString in class Object