Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Menu = cli.Menu{
{"d8", cmdDisplay8, helpMemRegion},
{"d16", cmdDisplay16, helpMemRegion},
{"d32", cmdDisplay32, helpMemRegion},
{"d64", cmdDisplay64, helpMemRegion},
{"r8", cmdRead8, helpMemRead},
{"r16", cmdRead16, helpMemRead},
{"r32", cmdRead32, helpMemRead},
{"r64", cmdRead64, helpMemRead},
{"t8", cmdTest8, helpMemRegion},
{"t16", cmdTest16, helpMemRegion},
{"t32", cmdTest32, helpMemRegion},
{"t64", cmdTest64, helpMemRegion},
{"w8", cmdWrite8, helpMemWrite},
{"w16", cmdWrite16, helpMemWrite},
{"w32", cmdWrite32, helpMemWrite},
{"w64", cmdWrite64, helpMemWrite},
{">file", cmdToFile, helpMemToFile},
{"md5", cmdCheckSum, helpMemRegion},
{"pic", cmdPic, helpMemRegion},
}
Menu memory submenu items
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { GetAddressSize() uint // get address width in bits GetDefaultRegion() *Region // get a default region LookupSymbol(name string) *Region // lookup a symbol RdMem(width, addr, n uint) ([]uint, error) // read width-bit memory buffer WrMem(width, addr uint, val []uint) error // write width-bit memory buffer }
Driver is the memory driver api.
type Meta ¶
type Meta interface {
String() string
}
Meta contains target/vendor specific region data.
type Region ¶
type Region struct { Name string // name Addr uint // start address Size uint // size in bytes // contains filtered or unexported fields }
Region is a contiguous region of memory.
func FileRegionArg ¶
func FileRegionArg(drv RegionDriver, args []string) (string, *Region, error)
FileRegionArg converts filename and memory region arguments.
func RegionArg ¶
func RegionArg(drv RegionDriver, args []string) (*Region, error)
RegionArg converts command line arguments to a memory region.
func (*Region) SetAddrSize ¶
SetAddrSize sets the region address size in bits.
type RegionDriver ¶
type RegionDriver interface { GetDefaultRegion() *Region // get a default region GetAddressSize() uint // get address size in bits LookupSymbol(name string) *Region // lookup the address of a symbol }
RegionDriver has the methods to process the command line arguments for memory regions.
Click to show internal directories.
Click to hide internal directories.