Class: AArch64::Instructions::BIC_log_shift

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/bic_log_shift.rb

Overview

BIC (shifted register) – A64 Bitwise Bit Clear (shifted register) BIC <Wd>, <Wn>, <Wm><shift> #<amount> BIC <Xd>, <Xn>, <Xm><shift> #<amount>

Instance Method Summary collapse

Constructor Details

#initialize(d, n, m, shift, amount, sf) ⇒ BIC_log_shift

Returns a new instance of BIC_log_shift.



8
9
10
11
12
13
14
15
# File 'lib/aarch64/instructions/bic_log_shift.rb', line 8

def initialize d, n, m, shift, amount, sf
  @d      = d
  @n      = n
  @m      = m
  @shift  = shift
  @amount = amount
  @sf     = sf
end

Instance Method Details

#encodeObject



17
18
19
# File 'lib/aarch64/instructions/bic_log_shift.rb', line 17

def encode
  BIC_log_shift(@sf, @shift, @m.to_i, @amount, @n.to_i, @d.to_i)
end