add set_internal

and the set_slot with register
very much like the get_slot for get_internal
This commit is contained in:
Torsten Ruger
2015-11-08 17:10:36 +02:00
parent ede7639861
commit c38775e933
5 changed files with 32 additions and 5 deletions

View File

@ -40,7 +40,11 @@ module Arm
def translate_SetSlot code
# times 4 because arm works in bytes, but vm in words
ArmMachine.str( code.register , code.array , 4 * code.index )
if(code.index.is_a? Numeric)
ArmMachine.str( code.register , code.array , 4 * code.index )
else
ArmMachine.str( code.register , code.array , code.index )
end
end
def translate_FunctionCall code