Class: AArch64::Instructions::CCMP_reg
- Inherits:
-
Object
- Object
- AArch64::Instructions::CCMP_reg
- Defined in:
- lib/aarch64/instructions/ccmp_reg.rb
Overview
CCMP (register) – A64 Conditional Compare (register) CCMP <Wn>, <Wm>, #<nzcv>, <cond> CCMP <Xn>, <Xm>, #<nzcv>, <cond>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rn, rm, nzcv, cond, sf) ⇒ CCMP_reg
constructor
A new instance of CCMP_reg.
Constructor Details
#initialize(rn, rm, nzcv, cond, sf) ⇒ CCMP_reg
Returns a new instance of CCMP_reg.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/ccmp_reg.rb', line 8 def initialize rn, rm, nzcv, cond, sf @rn = rn @rm = rm @nzcv = nzcv @cond = cond @sf = sf end |
Instance Method Details
#encode ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/ccmp_reg.rb', line 16 def encode CCMP_reg(@sf, @rm.to_i, @cond, @rn.to_i, @nzcv) end |