Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for asmJump (0.08 sec)

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

    		Ctxt: p.ctxt,
    		As:   obj.AFUNCDATA,
    		Pos:  p.pos(),
    		From: valueAddr,
    		To:   nameAddr,
    	}
    	p.append(prog, "", true)
    }
    
    // asmJump assembles a jump instruction.
    // JMP	R1
    // JMP	exit
    // JMP	3(PC)
    func (p *Parser) asmJump(op obj.As, cond string, a []obj.Addr) {
    	var target *obj.Addr
    	prog := &obj.Prog{
    		Ctxt: p.ctxt,
    		Pos:  p.pos(),
    		As:   op,
    	}
    	targetAddr := &prog.To
    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

    		addr := p.address(op)
    		if !p.isJump && addr.Reg < 0 { // Jumps refer to PC, a pseudo.
    			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)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/arch/arm.go

    	"IAW": arm.C_WBIT | arm.C_UBIT,
    	"DBW": arm.C_WBIT | arm.C_PBIT,
    	"DAW": arm.C_WBIT,
    	"IB":  arm.C_PBIT | arm.C_UBIT,
    	"IA":  arm.C_UBIT,
    	"DB":  arm.C_PBIT,
    	"DA":  0,
    }
    
    var armJump = map[string]bool{
    	"B":    true,
    	"BL":   true,
    	"BX":   true,
    	"BEQ":  true,
    	"BNE":  true,
    	"BCS":  true,
    	"BHS":  true,
    	"BCC":  true,
    	"BLO":  true,
    	"BMI":  true,
    	"BPL":  true,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 23 15:18:14 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top