This commit is contained in:
Torsten Ruger
2018-03-14 17:39:49 +05:30
parent 6fe13fc2b7
commit 79b4b07ac4
3 changed files with 8 additions and 7 deletions

View File

@ -14,8 +14,9 @@ module Risc
# If you had a c array and index offset
# the instruction would do array[index] = register
# So Setter means the register (first argument) moves to the slot (array and index)
def initialize source , register , array , index
# The arguments are in the order that makes sense for the Instruction name
# So RegToSlot means the register (first argument) moves to the slot (array and index)
def initialize( source , register , array , index )
super(source)
@register = register
@array = array