Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for asmInstruction (0.07 sec)

  1. src/cmd/asm/internal/asm/asm.go

    }
    
    func (p *Parser) branch(addr *obj.Addr, target *obj.Prog) {
    	*addr = obj.Addr{
    		Type:  obj.TYPE_BRANCH,
    		Index: 0,
    	}
    	addr.Val = target
    }
    
    // asmInstruction assembles an instruction.
    // MOVW R9, (R10)
    func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) {
    	// fmt.Printf("%s %+v\n", op, a)
    	prog := &obj.Prog{
    		Ctxt: p.ctxt,
    		Pos:  p.pos(),
    		As:   op,
    	}
    	switch len(a) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 21 14:11:44 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    			p.errorf("illegal use of pseudo-register in %s", word)
    		}
    		p.addr = append(p.addr, addr)
    	}
    	if p.isJump {
    		p.asmJump(op, cond, p.addr)
    		return
    	}
    	p.asmInstruction(op, cond, p.addr)
    }
    
    func (p *Parser) pseudo(word string, operands [][]lex.Token) bool {
    	switch word {
    	case "DATA":
    		p.asmData(operands)
    	case "FUNCDATA":
    		p.asmFuncData(operands)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top