Class: AArch64::Instructions::EOR_log_imm
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::EOR_log_imm
- Defined in:
- lib/aarch64/instructions/eor_log_imm.rb
Overview
EOR (immediate) – A64 Bitwise Exclusive OR (immediate) EOR <Wd|WSP>, <Wn>, #<imm> EOR <Xd|SP>, <Xn>, #<imm>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, n, immr, imms, sf) ⇒ EOR_log_imm
constructor
A new instance of EOR_log_imm.
Constructor Details
#initialize(rd, rn, n, immr, imms, sf) ⇒ EOR_log_imm
Returns a new instance of EOR_log_imm.
8 9 10 11 12 13 14 15 |
# File 'lib/aarch64/instructions/eor_log_imm.rb', line 8 def initialize rd, rn, n, immr, imms, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @n = check_mask(n, 0x01) @immr = check_mask(immr, 0x3f) @imms = check_mask(imms, 0x3f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
17 18 19 |
# File 'lib/aarch64/instructions/eor_log_imm.rb', line 17 def encode _ EOR_log_imm(@sf, @n, @immr, @imms, @rn, @rd) end |