public interface

IRegisterBank

com.pnfsoftware.jeb.core.units.code.asm.processor.IRegisterBank
Known Indirect Subclasses

Class Overview

A layout definition for a bank of registers.

Bank layout for common processors are defined in the arch sub-package.

See Also

Summary

Public Methods
abstract String format(int type)
Format the register bank as a string.
abstract Collection<RegisterDescriptionEntry> getAllDescriptionEntries()
Get the list of all (full and slices) register entries.
abstract int getCountOfDescriptionEntries()
Get the number of fill register entries.
abstract Collection<RegisterDescriptionEntry> getDescriptionEntries()
Get the list of full register entries.
abstract RegisterDescriptionEntry getDescriptionEntry(int regnum)
Get a full register entry by index (do not confuse with id).
abstract RegisterDescriptionEntry getDescriptionEntryById(long id)
Get a register entry (full or slice) by id (do not confuse with index).
abstract RegisterDescriptionEntry getDescriptionEntryByName(String name)
Get a register entry (full or slice) by name.
abstract RegisterDescriptionEntry getDescriptionEntryByName(Collection<String> names)
Get a register entry (full or slice) by name, using a list of candidate names.
abstract RegisterDescriptionEntry getDescriptionEntryByType(RegisterType type)
Get a full register entry by type.

Public Methods

public abstract String format (int type)

Format the register bank as a string.

Parameters
type 0: short-form (i.e., #toString()), 1: user-friendly long-form
Returns
  • the formatted bank

public abstract Collection<RegisterDescriptionEntry> getAllDescriptionEntries ()

Get the list of all (full and slices) register entries.

public abstract int getCountOfDescriptionEntries ()

Get the number of fill register entries. Slices are not counted.

public abstract Collection<RegisterDescriptionEntry> getDescriptionEntries ()

Get the list of full register entries. Slices are not returned.

public abstract RegisterDescriptionEntry getDescriptionEntry (int regnum)

Get a full register entry by index (do not confuse with id). Slices cannot be retrieved.

public abstract RegisterDescriptionEntry getDescriptionEntryById (long id)

Get a register entry (full or slice) by id (do not confuse with index).

public abstract RegisterDescriptionEntry getDescriptionEntryByName (String name)

Get a register entry (full or slice) by name.

public abstract RegisterDescriptionEntry getDescriptionEntryByName (Collection<String> names)

Get a register entry (full or slice) by name, using a list of candidate names. Useful when a register goes by different names.

Parameters
names candidate names

public abstract RegisterDescriptionEntry getDescriptionEntryByType (RegisterType type)

Get a full register entry by type. Slices cannot be retrieved.