Method: Rex::Arch::X86.clear
- Defined in:
- lib/rex/arch/x86.rb
.clear(reg, badchars = '') ⇒ Object
This method generates an instruction that clears the supplied register in a manner that attempts to avoid bad characters, if supplied.
201 202 203 204 |
# File 'lib/rex/arch/x86.rb', line 201 def self.clear(reg, badchars = '') _check_reg(reg) return set(reg, 0, badchars) end |