Class: AArch64::Instructions::BRK
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::BRK
- Defined in:
- lib/aarch64/instructions/brk.rb
Overview
BRK – A64 Breakpoint instruction BRK #<imm>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(imm) ⇒ BRK
constructor
A new instance of BRK.
Constructor Details
#initialize(imm) ⇒ BRK
Returns a new instance of BRK.
7 8 9 |
# File 'lib/aarch64/instructions/brk.rb', line 7 def initialize imm @imm = check_mask(imm, 0xffff) end |
Instance Method Details
#encode(_) ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/brk.rb', line 11 def encode _ BRK(@imm) end |