Class: AArch64::Instructions::BICS

Inherits:
Instruction 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      = check_mask(d, 0x1f)
  @n      = check_mask(n, 0x1f)
  @m      = check_mask(m, 0x1f)
  @shift  = check_mask(shift, 0x03)
  @amount = check_mask(amount, 0x3f)
  @sf     = check_mask(sf, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

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