minor formatting
This commit is contained in:
parent
53d8f4b163
commit
f5136b6b68
@ -48,7 +48,7 @@ module Arm
|
|||||||
#TODO this is copied from MoveInstruction, should rework
|
#TODO this is copied from MoveInstruction, should rework
|
||||||
unless @extra
|
unless @extra
|
||||||
@extra = 1
|
@extra = 1
|
||||||
puts "RELINK L at #{self.position.to_s(16)}"
|
#puts "RELINK L at #{self.position.to_s(16)}"
|
||||||
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
|
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
|
||||||
end
|
end
|
||||||
# now we can do the actual breaking of instruction, by splitting the operand
|
# now we can do the actual breaking of instruction, by splitting the operand
|
||||||
|
@ -62,7 +62,7 @@ module Arm
|
|||||||
# then on subsequent assemblies we can assemble
|
# then on subsequent assemblies we can assemble
|
||||||
unless @extra
|
unless @extra
|
||||||
@extra = 1
|
@extra = 1
|
||||||
puts "RELINK M at #{self.position.to_s(16)}"
|
#puts "RELINK M at #{self.position.to_s(16)}"
|
||||||
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
|
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
|
||||||
end
|
end
|
||||||
# now we can do the actual breaking of instruction, by splitting the operand
|
# now we can do the actual breaking of instruction, by splitting the operand
|
||||||
|
@ -47,13 +47,7 @@ module Parfait
|
|||||||
|
|
||||||
# private
|
# private
|
||||||
def set_layout(layout)
|
def set_layout(layout)
|
||||||
#if( was = internal_object_get(LAYOUT_INDEX) )
|
# puts "Layout was set for #{self.class}"
|
||||||
#TODO find out wat these objects are
|
|
||||||
#puts "Layout was set for #{self.class}"
|
|
||||||
#puts "#{self}" if self.class == Parfait::Word
|
|
||||||
# Space.object_space.check was
|
|
||||||
# return
|
|
||||||
#end
|
|
||||||
raise "Nil layout" unless layout
|
raise "Nil layout" unless layout
|
||||||
internal_object_set(LAYOUT_INDEX , layout)
|
internal_object_set(LAYOUT_INDEX , layout)
|
||||||
end
|
end
|
||||||
@ -65,7 +59,7 @@ module Parfait
|
|||||||
|
|
||||||
def get_layout()
|
def get_layout()
|
||||||
l = internal_object_get(LAYOUT_INDEX)
|
l = internal_object_get(LAYOUT_INDEX)
|
||||||
raise "No layout #{self.to_s}:#{self.class} #{self.object_id}" unless l
|
raise "No layout #{self.object_id.to_s(16)}=#{self.to_s[0 ... 100]}:#{self.class} " unless l
|
||||||
return l
|
return l
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user