lib/haxor/vm/os.rb in haxor-0.4.0 vs lib/haxor/vm/os.rb in haxor-0.5.0

- old
+ new

@@ -6,11 +6,11 @@ 0x02 => :sys_scanf, 0x03 => :sys_rand } def syscall - func = subsystem(:cpu).reg(Vm::Cpu::Core::REG_SYSCALL) + func = subsystem(:cpu).reg(Vm::Cpu::REG_SYSCALL) send(TABLE[func]) end def collect_string(addr) i = 0 @@ -76,10 +76,10 @@ file = IO.new(fd, 'r') result = file.scanf fmt if result.size != types.size - subsystem(:cpu).reg Vm::Cpu::Core::REG_SYSCALL, -1 + subsystem(:cpu).reg Vm::Cpu::REG_SYSCALL, -1 return end types.each do |type| value = result.shift