Class: AArch64::Instructions::AND_log_shift

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(xd, xn, xm, shift, amount, sf) ⇒ AND_log_shift

Returns a new instance of AND_log_shift.



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

def initialize xd, xn, xm, shift, amount, sf
  @xd     = xd
  @xn     = xn
  @xm     = xm
  @shift  = shift
  @amount = amount
  @sf     = sf
end

Instance Method Details

#encodeObject



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

def encode
  AND_log_shift(@sf, @shift, @xm.to_i, @amount, @xn.to_i, @xd.to_i)
end