get the label int to work consistently

still need to use it in the return
This commit is contained in:
Torsten Ruger
2018-05-30 10:54:18 +03:00
parent 074ec34659
commit 0dc89c772a
9 changed files with 41 additions and 32 deletions

View File

@ -91,7 +91,6 @@ module Arm
if( @left.is_a?(Parfait::Object) or @left.is_a?(Risc::Label) or
(@left.is_a?(Symbol) and !Risc::RiscValue.look_like_reg(@left)))
left = @left
puts "Label #{@left.integer.inspect}" if left.is_a?(Risc::Label)
left = @left.integer if left.is_a?(Risc::Label)
# do pc relative addressing with the difference to the instuction
# 8 is for the funny pipeline adjustment (ie pointing to fetch and not execute)