Method: Rex::Arch::X86.mov_dword
- Defined in:
- lib/rex/arch/x86.rb
.mov_dword(reg, val) ⇒ Object
This method generates the opcodes that set the a register to the supplied value.
232 233 234 235 |
# File 'lib/rex/arch/x86.rb', line 232 def self.mov_dword(reg, val) _check_reg(reg) return (0xb8 | reg).chr + pack_dword(val) end |