start on insertion events and handling

This commit is contained in:
Torsten Ruger
2018-06-06 10:00:07 +03:00
parent 4789b63fcb
commit c22aff4c4f
7 changed files with 93 additions and 26 deletions

View File

@ -22,10 +22,9 @@ module Arm
end
def insert(instruction)
super
my_pos = Risc::Position.get(self)
listener = Risc::InstructionListener.new( instruction , my_pos.get_code )
my_pos.position_listener(listener)
ret = super
Risc::Position.get(self).trigger_inserted if Risc::Position.set?(self)
ret
end
end
end