a creative moment, making up instructions
This commit is contained in:
12
lib/register/instructions/register_transfer.rb
Normal file
12
lib/register/instructions/register_transfer.rb
Normal file
@ -0,0 +1,12 @@
|
||||
module Register
|
||||
|
||||
#transfer the constents of one register to another. possibly called move in some cpus
|
||||
|
||||
class RegisterTransfer < Instruction
|
||||
def initialize from , to
|
||||
@from = from
|
||||
@to = to
|
||||
end
|
||||
attr_reader :from, :to
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user