Class: AArch64::Instructions::SDIV
- Inherits:
-
Object
- Object
- AArch64::Instructions::SDIV
- Defined in:
- lib/aarch64/instructions/sdiv.rb
Overview
SDIV – A64 Signed Divide SDIV <Wd>, <Wn>, <Wm> SDIV <Xd>, <Xn>, <Xm>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rd, rn, rm, sf) ⇒ SDIV
constructor
A new instance of SDIV.
Constructor Details
#initialize(rd, rn, rm, sf) ⇒ SDIV
8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/sdiv.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/sdiv.rb', line 15 def encode SDIV(@sf, @rm.to_i, @rn.to_i, @rd.to_i) end |