class RPicSim::Storage::MemoryWord
Represents a word-sized variable. The size of the word will depend on the memory the variable lives in.
Attributes
size[RW]
Public Instance Methods
value()
click to toggle source
# File lib/rpicsim/storage/memory_integer.rb, line 228 def value @memory.read_word(@address) end
value=(val)
click to toggle source
# File lib/rpicsim/storage/memory_integer.rb, line 232 def value=(val) @memory.write_word(@address, val) end