Class: AArch64::Instructions::ADCS
- Inherits:
-
Object
- Object
- AArch64::Instructions::ADCS
- Defined in:
- lib/aarch64/instructions/adcs.rb
Overview
ADCS – A64 Add with Carry, setting flags ADCS <Wd>, <Wn>, <Wm>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rd, rn, rm, sf) ⇒ ADCS
constructor
A new instance of ADCS.
Constructor Details
#initialize(rd, rn, rm, sf) ⇒ ADCS
Returns a new instance of ADCS.
7 8 9 10 11 12 |
# File 'lib/aarch64/instructions/adcs.rb', line 7 def initialize rd, rn, rm, sf @rd = rd @rn = rn @rm = rm @sf = sf end |
Instance Method Details
#encode ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/adcs.rb', line 14 def encode ADCS(@sf, @rm.to_i, @rn.to_i, @rd.to_i) end |