Java Code Examples for ghidra.program.model.address.AddressSpace#ID_TYPE_MASK

The following examples show how to use ghidra.program.model.address.AddressSpace#ID_TYPE_MASK . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Handle.java    From ghidra with Apache License 2.0 4 votes vote down vote up
public boolean isAddress() {
	int spaceType = AddressSpace.ID_TYPE_MASK & spaceID;
	return (spaceType == AddressSpace.TYPE_RAM );
}
 
Example 2
Source File: Handle.java    From ghidra with Apache License 2.0 4 votes vote down vote up
public boolean isDataAddress() {
	int spaceType = AddressSpace.ID_TYPE_MASK & spaceID;
	return spaceType == AddressSpace.TYPE_RAM;
}
 
Example 3
Source File: Handle.java    From ghidra with Apache License 2.0 4 votes vote down vote up
public boolean isConstant() {
	int type = AddressSpace.ID_TYPE_MASK & spaceID;
	return (type == AddressSpace.TYPE_CONSTANT);
}
 
Example 4
Source File: Handle.java    From ghidra with Apache License 2.0 4 votes vote down vote up
public boolean isRegister() {
	int type = AddressSpace.ID_TYPE_MASK & spaceID;
	return (type == AddressSpace.TYPE_REGISTER);
}
 
Example 5
Source File: Handle.java    From ghidra with Apache License 2.0 4 votes vote down vote up
public boolean isUnique() {
	int type = AddressSpace.ID_TYPE_MASK & spaceID;
	return (type == AddressSpace.TYPE_UNIQUE);
}