rename also get_slot, to slot_to_reg

makes source and target clear
This commit is contained in:
Torsten Ruger
2016-12-25 18:05:39 +02:00
parent 35adf9a5e6
commit f648bf7bd5
32 changed files with 105 additions and 105 deletions

View File

@ -1,6 +1,6 @@
module Register
# Getter is a base class for get instructions (GetSlot and GetByte , possibly more coming)
# Getter is a base class for get instructions (SlotToReg and GetByte , possibly more coming)
#
# The instruction that is modelled is loading data from an array into a register
#
@ -16,7 +16,7 @@ module Register
# If you had a c array and index offset
# the instruction would do register = array[index]
# The arguments are in the order that makes sense for the Instruction name
# So GetSlot means the slot (array and index) moves to the register (last argument)
# So SlotToReg means the slot (array and index) moves to the register (last argument)
def initialize source , array , index , register
super(source)
@array = array