remove resolve_to_register
which was, quite simply, from another era when more than message was pinned
This commit is contained in:
parent
73645e1507
commit
280ea8a8c4
@ -170,22 +170,6 @@ module Risc
|
||||
|
||||
end
|
||||
|
||||
# if a symbol is given, it may be the message or the new_message.
|
||||
# These are mapped to register references.
|
||||
# The valid symbols (:message,:new_message) are the same that are returned
|
||||
# by the slots. All data (at any time) is in one of the instance variables of these two
|
||||
# objects. Risc defines module methods with the same names (and _reg)
|
||||
def self.resolve_to_register( reference )
|
||||
return reference if reference.is_a?(RegisterValue)
|
||||
case reference
|
||||
when :message
|
||||
return message_reg
|
||||
when :new_message
|
||||
return new_message_reg
|
||||
else
|
||||
raise "not recognized register reference #{reference} #{reference.class}"
|
||||
end
|
||||
end
|
||||
|
||||
class CodeBuilder < Builder
|
||||
|
||||
|
@ -13,8 +13,6 @@ module Risc
|
||||
# from and to are translated (from symbol to register if neccessary)
|
||||
# but index is left as is.
|
||||
def self.byte_to_reg( source , array , index , to)
|
||||
array = resolve_to_register( array)
|
||||
to = resolve_to_register( to)
|
||||
ByteToReg.new( source , array , index , to)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user