random checkin

still suffering -1 trauma
This commit is contained in:
Torsten Ruger
2018-05-14 12:38:44 +03:00
parent ab01fa3862
commit 4a88f342d3
18 changed files with 45 additions and 44 deletions

View File

@ -22,7 +22,7 @@ module Risc
class_source "#{@name} (next: #{self.next.class.name.split("::").last})"
end
def sof_reference_name
def rxf_reference_name
@name
end

View File

@ -24,8 +24,8 @@ module Risc
when String , Symbol
@constant.to_s
else
if( @constant.respond_to? :sof_reference_name )
constant.sof_reference_name
if( @constant.respond_to? :rxf_reference_name )
constant.rxf_reference_name
else
constant.class.name.to_s
end

View File

@ -21,7 +21,7 @@ module Risc
@register = register
@array = array
@index = index
raise "index 0 " if index == 0
raise "index 0 " if index < 0
raise "Not integer or reg #{index}" unless index.is_a?(Numeric) or RiscValue.look_like_reg(index)
raise "Not register #{register}" unless RiscValue.look_like_reg(register)
raise "Not register #{array}" unless RiscValue.look_like_reg(array)