Class: AArch64::Instructions::DSB

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

Overview

DSB – A64 Data Synchronization Barrier DSB <option>|#<imm> DSB <option>nXS|#<imm>

Instance Method Summary collapse

Constructor Details

#initialize(imm) ⇒ DSB

Returns a new instance of DSB.



8
9
10
# File 'lib/aarch64/instructions/dsb.rb', line 8

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

Instance Method Details

#encode(_) ⇒ Object



12
13
14
# File 'lib/aarch64/instructions/dsb.rb', line 12

def encode _
  DSB(@imm)
end