Class: AArch64::Instructions::CCMP_reg
- Inherits:
-
Instruction
- Object
- Instruction
- 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 = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @nzcv = check_mask(nzcv, 0x0f) @cond = check_mask(cond, 0x0f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/ccmp_reg.rb', line 16 def encode _ CCMP_reg(@sf, @rm, @cond, @rn, @nzcv) end |