Package mars.mips.hardware
Class MemoryAccessNotice
java.lang.Object
mars.mips.hardware.AccessNotice
mars.mips.hardware.MemoryAccessNotice
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
-
Field Summary
Fields inherited from class mars.mips.hardware.AccessNotice
READ, WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryAccessNotice(int type, int address, int value)
Constructor will be called only within this package, so assume address is in valid range. -
Method Summary
Modifier and TypeMethodDescriptionint
Fetch the memory address that was accessed.int
Fetch the length in bytes of the access operation (4,2,1).int
getValue()
Fetch the value of the access operation (the value read or written).toString()
String representation indicates access type, address and length in bytesMethods inherited from class mars.mips.hardware.AccessNotice
accessIsFromGUI, accessIsFromMIPS, getAccessType, getThread
-
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
String representation indicates access type, address and length in bytes
-