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