rubyx/lib/risc/instructions/byte_to_reg.rb
Torsten Ruger 280ea8a8c4 remove resolve_to_register
which was, quite simply, from another era when more than message was pinned
2018-07-16 19:19:49 +03:00

19 lines
475 B
Ruby

module Risc
# ByteToReg moves a single byte into a register from memory.
# indexes are 1 based (as for slots) , which means we sacrifice a byte of every word
# for our sanity
class ByteToReg < Getter
end
# Produce a ByteToReg instruction.
# from and to are translated (from symbol to register if neccessary)
# but index is left as is.
def self.byte_to_reg( source , array , index , to)
ByteToReg.new( source , array , index , to)
end
end