var testOut … // append adds the Prog to the end of the program-thus-far. // If doLabel is set, it also defines the labels collect for this Prog. func (p *Parser) append(prog *obj.Prog, cond string, doLabel bool) { … } // validSymbol checks that addr represents a valid name for a pseudo-op. func (p *Parser) validSymbol(pseudo string, addr *obj.Addr, offsetOk bool) bool { … } // evalInteger evaluates an integer constant for a pseudo-op. func (p *Parser) evalInteger(pseudo string, operands []lex.Token) int64 { … } // validImmediate checks that addr represents an immediate constant. func (p *Parser) validImmediate(pseudo string, addr *obj.Addr) bool { … } // asmText assembles a TEXT pseudo-op. // TEXT runtime·sigtramp(SB),4,$0-0 func (p *Parser) asmText(operands [][]lex.Token) { … } // asmData assembles a DATA pseudo-op. // DATA masks<>+0x00(SB)/4, $0x00000000 func (p *Parser) asmData(operands [][]lex.Token) { … } // asmGlobl assembles a GLOBL pseudo-op. // GLOBL shifts<>(SB),8,$256 // GLOBL shifts<>(SB),$256 func (p *Parser) asmGlobl(operands [][]lex.Token) { … } // asmPCData assembles a PCDATA pseudo-op. // PCDATA $2, $705 func (p *Parser) asmPCData(operands [][]lex.Token) { … } // asmPCAlign assembles a PCALIGN pseudo-op. // PCALIGN $16 func (p *Parser) asmPCAlign(operands [][]lex.Token) { … } // asmFuncData assembles a FUNCDATA pseudo-op. // FUNCDATA $1, funcdata<>+4(SB) func (p *Parser) asmFuncData(operands [][]lex.Token) { … } // asmJump assembles a jump instruction. // JMP R1 // JMP exit // JMP 3(PC) func (p *Parser) asmJump(op obj.As, cond string, a []obj.Addr) { … } func (p *Parser) patch() { … } func (p *Parser) branch(addr *obj.Addr, target *obj.Prog) { … } // asmInstruction assembles an instruction. // MOVW R9, (R10) func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) { … } // symbolName returns the symbol name, or an error string if none is available. func symbolName(addr *obj.Addr) string { … } var emptyProg … // getConstantPseudo checks that addr represents a plain constant and returns its value. func (p *Parser) getConstantPseudo(pseudo string, addr *obj.Addr) int64 { … } // getConstant checks that addr represents a plain constant and returns its value. func (p *Parser) getConstant(prog *obj.Prog, op obj.As, addr *obj.Addr) int64 { … } // getImmediate checks that addr represents an immediate constant and returns its value. func (p *Parser) getImmediate(prog *obj.Prog, op obj.As, addr *obj.Addr) int64 { … } // getRegister checks that addr represents a register and returns its value. func (p *Parser) getRegister(prog *obj.Prog, op obj.As, addr *obj.Addr) int16 { … }