fix interpreter to use positions
tick from one (simulated memory) position to the next (not from one instruction to the next)
This commit is contained in:
@ -30,7 +30,10 @@ module Risc
|
||||
end
|
||||
class IdentityTranslator
|
||||
def translate(code)
|
||||
return Label.new( code.source , code.name ) if code.is_a?(Label)
|
||||
#return Label.new( code.source , code.name ) if code.is_a?(Label)
|
||||
if( code.is_a?(Branch))
|
||||
return code.class.new(code.source , code.label.to_cpu(self))
|
||||
end
|
||||
ret = code.dup
|
||||
ret.nil_next
|
||||
ret
|
||||
|
Reference in New Issue
Block a user