12 lines
252 B
Ruby
12 lines
252 B
Ruby
|
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
|