fixed that darn method address bug

This commit is contained in:
Torsten Ruger
2015-07-01 09:47:10 +03:00
parent 9541712af8
commit 047c77e186
5 changed files with 6 additions and 9 deletions

View File

@ -48,6 +48,7 @@ module Arm
#TODO this is copied from MoveInstruction, should rework
unless @extra
@extra = 1
puts "RELINK L at #{self.position.to_s(16)}"
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
end
# now we can do the actual breaking of instruction, by splitting the operand
@ -87,7 +88,7 @@ module Arm
val << by
end
def word_length
def byte_length
@extra ? 8 : 4
end