Lines Matching full:disasm
22 // Disasm is a disassembler for a given File.
23 type Disasm struct {
30 disasm disasmFunc // disassembler function for goarch
34 // Disasm returns a disassembler for the file f.
35 func (f *File) Disasm() (*Disasm, error) {
52 disasm := disasms[goarch]
54 if disasm == nil || byteOrder == nil {
69 d := &Disasm{
76 disasm: disasm,
84 func (d *Disasm) lookup(addr uint64) (name string, base uint64) {
107 func (d *Disasm) Print(w io.Writer, filter *regexp.Regexp, start, end uint64) {
161 func (d *Disasm) Decode(start, end uint64, f func(pc, size uint64, file string, line int, text string)) {
172 text, size := d.disasm(code[i:], pc, lookup)