rename risc_value to register_value

almost to register, but it still carries that value
This commit is contained in:
Torsten Ruger
2018-06-29 11:39:07 +03:00
parent 606c7bf906
commit d50893bb0f
21 changed files with 67 additions and 67 deletions

View File

@@ -60,7 +60,7 @@ module Arm
end
def reg_code r_name
raise "double r #{r_name}" if( :rr1 == r_name)
if r_name.is_a? ::Risc::RiscValue
if r_name.is_a? ::Risc::RegisterValue
r_name = r_name.symbol
end
if r_name.is_a? Fixnum
@@ -93,7 +93,7 @@ module Arm
end
end
Risc::RiscValue.class_eval do
Risc::RegisterValue.class_eval do
def reg_no
@symbol.to_s[1 .. -1].to_i
end