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