Class: AArch64::Instructions::DMB

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/dmb.rb

Overview

DMB – A64 Data Memory Barrier DMB <option>|#<imm>

Instance Method Summary collapse

Constructor Details

#initialize(imm) ⇒ DMB

Returns a new instance of DMB.



7
8
9
# File 'lib/aarch64/instructions/dmb.rb', line 7

def initialize imm
  @imm = check_mask(imm, 0x0f)
end

Instance Method Details

#encode(_) ⇒ Object



11
12
13
# File 'lib/aarch64/instructions/dmb.rb', line 11

def encode _
  DMB(@imm)
end