fixing register order in some instructions

and their use
Arm is confusing as it has result as first arg
we use forward logic, i.e. from -> to
This commit is contained in:
Torsten Ruger
2015-06-27 20:09:21 +03:00
parent add79e5157
commit 97b4c469f8
6 changed files with 18 additions and 6 deletions

View File

@ -8,8 +8,14 @@ module Register
# Get/Set Slot move data around in vm objects, but transfer moves the objects (in the machine)
#
# Also it is used for moving temorary data
#
class RegisterTransfer < Instruction
# initialize with from and to registers.
# First argument from
# second arguemnt to
#
# Note: this may be reversed from some assembler notations (also arm)
def initialize from , to
@from = wrap_register(from)
@to = wrap_register(to)