rubyx/lib/register/instructions/reg_to_byte.rb

22 lines
502 B
Ruby
Raw Normal View History

module Register
2016-12-25 17:11:58 +01:00
# RegToByte moves a byte into memory from a register.
# indexes are 1 based !
2016-12-25 17:11:58 +01:00
class RegToByte < Setter
end
2016-12-25 17:11:58 +01:00
# Produce a RegToByte instruction.
# from and to are translated (from symbol to register if neccessary)
# but index is left as is.
2016-12-25 17:11:58 +01:00
# def self.reg_to_byte source , from , to , index
2016-12-11 11:18:11 +01:00
# from = resolve_to_register from
2016-12-28 17:16:39 +01:00
# index = resolve_to_index( to , index)
2016-12-11 11:18:11 +01:00
# to = resolve_to_register to
2016-12-25 17:11:58 +01:00
# RegToByte.new( source, from , to , index)
2016-12-11 11:18:11 +01:00
# end
end