start on redoing instruction positions

using insruction listeners (wip)
This commit is contained in:
Torsten Ruger
2018-06-02 21:20:15 +03:00
parent 3bc35c2275
commit 24f6e30b54
7 changed files with 36 additions and 21 deletions

View File

@ -57,7 +57,7 @@ module Risc
end
def self.set_to( position , to)
postest = Position.positions[position.object]
postest = Position.positions[position.object] unless to < 0
raise "Mismatch #{position}" if postest and postest != position
@reverse_cache.delete(position.at) unless position.object.is_a? Label
testing = self.at( position.at ) if position.at >= 0
@ -73,5 +73,5 @@ module Risc
end
require_relative "object_position"
require_relative "object_listener"
require_relative "instruction_position"
require_relative "instruction_listener"
require_relative "code_listener"