Class: Haxor::Compiler::Component::Jumps
- Defined in:
- lib/haxor/compiler/component/jumps.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #cmd_call(a) ⇒ Object
- #cmd_iret(*_args) ⇒ Object
- #cmd_je(a) ⇒ Object
- #cmd_jg(a) ⇒ Object
- #cmd_jge(a) ⇒ Object
- #cmd_jl(a) ⇒ Object
- #cmd_jle(a) ⇒ Object
- #cmd_jmp(a) ⇒ Object
- #cmd_jne(a) ⇒ Object
- #cmd_jng(a) ⇒ Object
- #cmd_jnge(a) ⇒ Object
- #cmd_jnl(a) ⇒ Object
- #cmd_jnle(a) ⇒ Object
- #cmd_ret(*_args) ⇒ Object
- #register ⇒ Object
Methods inherited from Base
#add, #add_cmd, #bind_cmd, #offset?, #offset_flags, #parse_value, #strip_offset
Instance Method Details
#cmd_call(a) ⇒ Object
25 26 27 |
# File 'lib/haxor/compiler/component/jumps.rb', line 25 def cmd_call(a) add_cmd Vm::Cpu::Unit::Jumps::OP_CALL, a end |
#cmd_iret(*_args) ⇒ Object
33 34 35 |
# File 'lib/haxor/compiler/component/jumps.rb', line 33 def cmd_iret(*_args) add_cmd Vm::Cpu::Unit::Jumps::OP_IRET end |
#cmd_je(a) ⇒ Object
41 42 43 |
# File 'lib/haxor/compiler/component/jumps.rb', line 41 def cmd_je(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JE, a end |
#cmd_jg(a) ⇒ Object
45 46 47 |
# File 'lib/haxor/compiler/component/jumps.rb', line 45 def cmd_jg(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JG, a end |
#cmd_jge(a) ⇒ Object
49 50 51 |
# File 'lib/haxor/compiler/component/jumps.rb', line 49 def cmd_jge(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JGE, a end |
#cmd_jl(a) ⇒ Object
53 54 55 |
# File 'lib/haxor/compiler/component/jumps.rb', line 53 def cmd_jl(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JL, a end |
#cmd_jle(a) ⇒ Object
57 58 59 |
# File 'lib/haxor/compiler/component/jumps.rb', line 57 def cmd_jle(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JLE, a end |
#cmd_jmp(a) ⇒ Object
37 38 39 |
# File 'lib/haxor/compiler/component/jumps.rb', line 37 def cmd_jmp(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JMP, a end |
#cmd_jne(a) ⇒ Object
61 62 63 |
# File 'lib/haxor/compiler/component/jumps.rb', line 61 def cmd_jne(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JNE, a end |
#cmd_jng(a) ⇒ Object
65 66 67 |
# File 'lib/haxor/compiler/component/jumps.rb', line 65 def cmd_jng(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JNG, a end |
#cmd_jnge(a) ⇒ Object
69 70 71 |
# File 'lib/haxor/compiler/component/jumps.rb', line 69 def cmd_jnge(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JNGE, a end |
#cmd_jnl(a) ⇒ Object
73 74 75 |
# File 'lib/haxor/compiler/component/jumps.rb', line 73 def cmd_jnl(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JNL, a end |
#cmd_jnle(a) ⇒ Object
77 78 79 |
# File 'lib/haxor/compiler/component/jumps.rb', line 77 def cmd_jnle(a) add_cmd Vm::Cpu::Unit::Jumps::OP_JNLE, a end |
#cmd_ret(*_args) ⇒ Object
29 30 31 |
# File 'lib/haxor/compiler/component/jumps.rb', line 29 def cmd_ret(*_args) add_cmd Vm::Cpu::Unit::Jumps::OP_RET end |
#register ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/haxor/compiler/component/jumps.rb', line 5 def register bind_cmd 'call', :cmd_call bind_cmd 'ret', :cmd_ret bind_cmd 'iret', :cmd_iret bind_cmd 'jmp', :cmd_jmp bind_cmd 'je', :cmd_je bind_cmd 'jg', :cmd_jg bind_cmd 'jge', :cmd_jge bind_cmd 'jl', :cmd_jl bind_cmd 'jle', :cmd_jle bind_cmd 'jne', :cmd_jne bind_cmd 'jng', :cmd_jng bind_cmd 'jnge', :cmd_jnge bind_cmd 'jnl', :cmd_jnl bind_cmd 'jnle', :cmd_jnle end |