use positions in interpreter

This commit is contained in:
Torsten Ruger
2018-05-20 15:52:13 +03:00
parent c0f10bb42b
commit ef2dc932ad
6 changed files with 11 additions and 6 deletions

View File

@ -48,7 +48,7 @@ module Risc
def set_pc( pos )
raise "Not int #{pos}" unless pos.is_a? Numeric
position = Position.at(pos)
log.debug "Setting Position #{pos}"
log.debug "Setting Position #{position}"
if position.is_a?(Position::CodePosition)
return set_pc(position.at + 12)
end