Method: Rex::Arch::Sparc.set_dword

Defined in:
lib/rex/arch/sparc.rb

.set_dword(constant, dst) ⇒ Object

Puts ‘constant’ into the ‘dst’ register using both sethi and ori (necessary to use both uncessarily in some cases with encoders)



69
70
71
# File 'lib/rex/arch/sparc.rb', line 69

def self.set_dword(constant, dst)
  sethi(constant, dst) + ori(dst, constant & 0x3ff, dst)
end