module Ronin::ASM
Constants
- VERSION
ronin-asm version
Public Class Methods
new(options={},&block)
click to toggle source
Creates a new Assembly Program
.
@param [Hash{Symbol => Object}] options
Additional options.
@option options [String, Symbol] :arch (:x86)
The architecture of the Program.
@option options [Hash{Symbol => Object}] :variables
Variables to set in the program.
@yield []
The given block will be evaluated within the program.
@return [Program]
The new Assembly Program.
@example
ASM.new do mov 1, eax mov 1, ebx mov 2, ecx _loop do push ecx imul ebx, ecx pop ebx inc eax cmp ebx, 10 jl :_loop end end
# File lib/ronin/asm/asm.rb, line 62 def ASM.new(options={},&block) Program.new(options,&block) end