Class: AArch64::Instructions::BICS

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

Overview

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BICS.



8
9
10
11
12
13
14
15
# File 'lib/aarch64/instructions/bics.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/bics.rb', line 17

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