Class: YTLJit::StepHandler

Inherits:
Object show all
Defined in:
lib/ytljit/asm.rb,
ext/ytljit.c

Constant Summary collapse

REG_NAME =
["EAX", "ECX", "EDX", "EBX", "EBP", "ESP", "EDI"]

Instance Method Summary collapse

Instance Method Details

#step_handler(*regs) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/ytljit/asm.rb', line 5

def step_handler(*regs)
 STDERR.print "#{regs[0].to_s(16)} "
 STDERR.print CodeSpace.disasm_cache[regs[0].to_s(16)], "\n"
 regs.each_with_index do |val, i|
   STDERR.print REG_NAME[i]
   STDERR.print ": 0x"
   STDERR.print val.to_s(16)
   STDERR.print " "
 end
 STDERR.print "\n"
end