func (p *Parser) registerNumber(name string) uint16 {
	if p.arch.Family == sys.ARM && name == "g" {
		return 10
	}
	if name[0] != 'R' {
		p.errorf("expected g or R0 through R15; found %s", name)
		return 0
	}
	r, ok := p.registerReference(name)
	if !ok {
		return 0
	}
	reg := r - p.arch.Register["R0"]
	if reg < 0 {
		// Could happen for an architecture having other registers prefixed by R
		p.errorf("expected g or R0 through R15; found %s", name)
		return 0
	}
	return uint16(reg)
}
// register number is ARM-specific. It returns the number of the specified register.
register number is ARM-specific. It returns the number of the specified register.
// register number is ARM - specific . It returns the number of the specified register .
func (p *Parser) registerNumber(name string) uint16 {
	if p.arch.Family == sys.ARM && name == "g" {
		return 10
	}
	if name[0] != 'R' {
		p.errorf("expected g or R0 through R15; found %s", name)
		return 0
	}
	r, ok := p.registerReference(name)
	if !ok {
		return 0
	}
	reg := r - p.arch.Register["R0"]
	if reg < 0 {
		p.errorf("expected g or R0 through R15; found %s", name)
		return 0
	}
	return uint16(reg)
}
func ( p * Parser ) registerNumber ( name string ) uint16 { if p . arch . Family == sys . ARM && name == " " { return 10 } if name [ 0 ] != 'R' { p . errorf ( " " , name ) return 0 } r , ok := p . registerReference ( name ) if ! ok { return 0 } reg := r - p . arch . Register [ " " ] if reg < 0 { p . errorf ( " " , name ) return 0 } return uint16 ( reg ) }
register number is ARM-specific.
register number is ARM - specific .
// Could happen for an architecture having other registers prefixed by R