Class: AArch64::Instructions::MOVZ
- Inherits:
-
Object
- Object
- AArch64::Instructions::MOVZ
- 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
- #encode ⇒ Object
-
#initialize(reg, imm, shift, sf) ⇒ MOVZ
constructor
A new instance of MOVZ.
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
#encode ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/movz.rb', line 15 def encode MOVZ(@sf, @shift, @imm, @reg.to_i) end |