Class: AArch64::Instructions::MOVZ

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

Overview

MOVZ – A64 Move wide with zero MOVZ <Wd>, #<imm>LSL #<shift> MOVZ <Xd>, #<imm>LSL #<shift>

Instance Method Summary collapse

Constructor Details

#initialize(reg, imm, shift, sf) ⇒ MOVZ



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

def initialize reg, imm, shift, sf
  @reg   = reg
  @imm   = imm
  @shift = shift
  @sf    = sf
end

Instance Method Details

#encodeObject



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

def encode
  MOVZ(@sf, @shift, @imm, @reg.to_i)
end