minor cleaning

This commit is contained in:
Torsten Ruger
2015-11-07 21:55:04 +02:00
parent 8c68ffc7a4
commit 2315ad6920
5 changed files with 3 additions and 10 deletions

View File

@ -44,6 +44,7 @@ module Register
#helper method to calculate with register symbols
def next_reg_use type , value = nil
int = @symbol[1,3].to_i
raise "No more registers #{self}" if int > 12
sym = "r#{int + 1}".to_sym
RegisterValue.new( sym , type, value)
end
@ -111,10 +112,4 @@ module Register
return register
end
# when knowing the index of the argument, return the index into the message
# index passed is parfait, ie stats at 1
def self.arg_index i
last = resolve_index :message , :name
return last + i
end
end