fix the move, correct for funny pipeline
This commit is contained in:
parent
485d6566ad
commit
294ea8de4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user