Class: AArch64::Instructions::MOVN

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

Overview

MOVN – A64 Move wide with NOT MOVN <Wd>, #<imm>LSL #<shift> MOVN <Xd>, #<imm>LSL #<shift>

Instance Method Summary collapse

Constructor Details

#initialize(rd, imm16, hw, sf) ⇒ MOVN

Returns a new instance of MOVN.



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

def initialize rd, imm16, hw, sf
  @rd    = rd
  @imm16 = imm16
  @hw    = hw
  @sf    = sf
end

Instance Method Details

#encodeObject



15
16
17
# File 'lib/aarch64/instructions/movn.rb', line 15

def encode
  MOVN(@sf, @hw, @imm16, @rd.to_i)
end