propagate instruction positions

still overlapping onto binaries, but a start
This commit is contained in:
Torsten Ruger
2018-06-05 18:11:25 +03:00
parent f35ee6425a
commit 8d953a619f
12 changed files with 68 additions and 69 deletions

View File

@ -24,8 +24,8 @@ module Arm
def insert(instruction)
super
my_pos = Risc::Position.get(self)
# set my position to set next according to rules
Risc::InstructionListener.init(instruction , my_pos.get_code)
listener = Risc::InstructionListener.new( instruction , my_pos.get_code )
my_pos.position_listener(listener)
end
end
end