clean up Get/SetSlot

document and make arguments consistent
This commit is contained in:
Torsten Ruger
2015-06-21 21:00:16 +03:00
parent f3ee11fca5
commit 836089a249
6 changed files with 56 additions and 26 deletions

View File

@ -1,7 +1,14 @@
module Register
#transfer the constents of one register to another. possibly called move in some cpus
# transfer the constents of one register to another.
# possibly called move in some cpus
# There are other instructions to move data from / to memory, namely GetSlot and SetSlot
# 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
def initialize from , to
@from = wrap_register(from)
@ -9,4 +16,4 @@ module Register
end
attr_reader :from, :to
end
end
end