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:
@ -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)
|
||||
|
Reference in New Issue
Block a user