introduce base class for get_slot and get_byte called getter

This commit is contained in:
Torsten Ruger
2016-12-11 14:12:35 +02:00
parent ef285a146f
commit e479b00b29
5 changed files with 51 additions and 30 deletions

View File

@ -1,12 +1,15 @@
module Register
# Setter is a base class for set instructions (SetSlot and SetByte , possibly more coming)
#
# The instruction that is modelled is loading data from an array into a register
# The instruction that is modelled is loading data from a register into an array
#
# Setter has a
# - Register that the data is moved to
# - an array where the data comes from
# - Register that the data is comes from
# - an array where the data goes
# - and (array) index
# Getter and Setter api follow the pattern from -> to
class Setter < Instruction
# If you had a c array and index offset