mem_length to word/byte length
be more specific, and don’t include padding
This commit is contained in:
@ -89,7 +89,7 @@ module Parfait
|
||||
get_layout().index_of(name)
|
||||
end
|
||||
|
||||
def mem_length
|
||||
def word_length
|
||||
padded_words( get_layout().get_length() + 2 )
|
||||
end
|
||||
|
||||
|
@ -128,8 +128,8 @@ module Parfait
|
||||
raise "called"
|
||||
class_for(MoveInstruction).new(value , self , :opcode => :mov)
|
||||
end
|
||||
def mem_length
|
||||
padded(1 + string.length)
|
||||
def word_length
|
||||
(string.length+1) / 4
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user