fix instruction positioning
use at as at and only compute difference when needed (to determine if there is a jump in binary) Easier to understand that way
This commit is contained in:
@ -112,7 +112,7 @@ module Risc
|
||||
next unless method.is_a? Parfait::TypedMethod
|
||||
before = at
|
||||
Position.set( method.binary , at , method)
|
||||
Position.set( method.cpu_instructions, 3 , method.binary)
|
||||
Position.set( method.cpu_instructions, at + 12 , method.binary)
|
||||
# before = at
|
||||
# nekst = method.binary
|
||||
# while(nekst)
|
||||
|
Reference in New Issue
Block a user