unite the two resolve_to_index functions
This commit is contained in:
@ -16,7 +16,7 @@ module Risc
|
||||
# Produce a SlotToReg instruction.
|
||||
# Array and to are registers or symbols that can be transformed to a register by resolve_to_register
|
||||
# index resolves with resolve_to_index.
|
||||
def self.slot_to_reg source , array , index , to
|
||||
def self.slot_to_reg( source , array , index , to)
|
||||
index = resolve_to_index( array , index)
|
||||
array = resolve_to_register( array )
|
||||
to = resolve_to_register( to )
|
||||
|
Reference in New Issue
Block a user