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