fix the move, correct for funny pipeline

This commit is contained in:
Torsten Ruger 2015-06-27 20:07:42 +03:00
parent 485d6566ad
commit 294ea8de4f

View File

@ -31,7 +31,7 @@ module Arm
@left.is_a?(Symbol) and !Register::RegisterReference.look_like_reg(@left)
# do pc relative addressing with the difference to the instuction
# 8 is for the funny pipeline adjustment (ie pointing to fetch and not execute)
right = @left.position - self.position
right = @left.position - self.position - 8
raise "todo in direction #{right}" if( opcode == :add and right < 0 )
raise "No negatives implemented #{right} " if right < 0
left = :pc