Sha256: 9aa72f788bb4d0a697f1578e66cc58e5e95193decf17e7806e956866bfc88e0a
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
module Haxor module Compiler module Component class Various < Base def register bind_cmd 'nop', :cmd_nop bind_cmd 'lea', :cmd_lea bind_cmd 'int', :cmd_int bind_cmd 'syscall', :cmd_syscall end def cmd_nop(*_args) add_cmd Vm::Cpu::Unit::Various::OP_NOP end def cmd_lea(a, b) add_cmd Vm::Cpu::Unit::Various::OP_LEA, a, b end def cmd_int(a) add_cmd Vm::Cpu::Unit::Various::OP_INT, a end def cmd_syscall add_cmd Vm::Cpu::Unit::Various::OP_SYSCALL end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
haxor-0.3.0 | lib/haxor/compiler/component/various.rb |