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