// GoSyntax returns the Go assembler syntax for the instruction. // The syntax was originally defined by Plan 9. // The pc is the program counter of the instruction, used for // expanding PC-relative addresses into absolute ones. // The symname function queries the symbol table for the program // being disassembled. Given a target address it returns the name // and base address of the symbol containing the target, if any; // otherwise it returns "", 0. // The reader text should read from the text segment using text addresses // as offsets; it is used to display pc-relative loads as constant loads. func GoSyntax(inst Inst, pc uint64, symname func(uint64) (string, uint64), text io.ReaderAt) string { … } var noSuffixOpSet … var fOpsWithoutFPrefix … func plan9Arg(inst *Inst, pc uint64, symname func(uint64) (string, uint64), arg Arg) string { … } // Convert a general-purpose register to plan9 assembly format. func plan9gpr(r Reg) string { … }