Class: AArch64::Instructions::RBIT_int
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::RBIT_int
- Defined in:
- lib/aarch64/instructions/rbit_int.rb
Overview
RBIT – A64 Reverse Bits RBIT <Wd>, <Wn> RBIT <Xd>, <Xn>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, sf) ⇒ RBIT_int
constructor
A new instance of RBIT_int.
Constructor Details
#initialize(rd, rn, sf) ⇒ RBIT_int
Returns a new instance of RBIT_int.
8 9 10 11 12 |
# File 'lib/aarch64/instructions/rbit_int.rb', line 8 def initialize rd, rn, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/rbit_int.rb', line 14 def encode _ RBIT_int(@sf, @rn, @rd) end |