Class: AArch64::Instructions::ADD_addsub_ext
- Inherits:
-
Object
- Object
- AArch64::Instructions::ADD_addsub_ext
- Defined in:
- lib/aarch64/instructions/add_addsub_ext.rb
Overview
ADD (extended register) – A64 Add (extended register) ADD <Wd|WSP>, <Wn|WSP>, <Wm><extend> {#<amount>} ADD <Xd|SP>, <Xn|SP>, <R><m><extend> {#<amount>}
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rd, rn, rm, extend, amount, sf) ⇒ ADD_addsub_ext
constructor
A new instance of ADD_addsub_ext.
Constructor Details
#initialize(rd, rn, rm, extend, amount, sf) ⇒ ADD_addsub_ext
Returns a new instance of ADD_addsub_ext.
8 9 10 11 12 13 14 15 |
# File 'lib/aarch64/instructions/add_addsub_ext.rb', line 8 def initialize rd, rn, rm, extend, amount, sf @rd = rd @rn = rn @rm = rm @extend = extend @amount = amount @sf = sf end |
Instance Method Details
#encode ⇒ Object
17 18 19 |
# File 'lib/aarch64/instructions/add_addsub_ext.rb', line 17 def encode ADD_addsub_ext(@sf, @rm.to_i, @extend, @amount, @rn.to_i, @rd.to_i) end |