Class: AArch64::Instructions::UDIV

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

Overview

UDIV – A64 Unsigned Divide UDIV <Wd>, <Wn>, <Wm> UDIV <Xd>, <Xn>, <Xm>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, rm, sf) ⇒ UDIV

Returns a new instance of UDIV.



8
9
10
11
12
13
# File 'lib/aarch64/instructions/udiv.rb', line 8

def initialize rd, rn, rm, sf
  @rd = check_mask(rd, 0x1f)
  @rn = check_mask(rn, 0x1f)
  @rm = check_mask(rm, 0x1f)
  @sf = check_mask(sf, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



15
16
17
# File 'lib/aarch64/instructions/udiv.rb', line 15

def encode _
  UDIV(@sf, @rm, @rn, @rd)
end