Class: AArch64::Instructions::LDTRB

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

Overview

LDTRB – A64 Load Register Byte (unprivileged) LDTRB <Wt>, [<Xn|SP>#<simm>]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, imm9) ⇒ LDTRB

Returns a new instance of LDTRB.



7
8
9
10
11
# File 'lib/aarch64/instructions/ldtrb.rb', line 7

def initialize rt, rn, imm9
  @rt   = check_mask(rt, 0x1f)
  @rn   = check_mask(rn, 0x1f)
  @imm9 = check_mask(imm9, 0x1ff)
end

Instance Method Details

#encode(_) ⇒ Object



13
14
15
# File 'lib/aarch64/instructions/ldtrb.rb', line 13

def encode _
  LDTRB(@imm9, @rn, @rt)
end