Class: Badline::ColorMemory
- Defined in:
- lib/badline/color_memory.rb
Instance Attribute Summary
Attributes included from Addressable
Instance Method Summary collapse
Methods inherited from Memory
#initialize, #peek, #read, #write
Methods included from Addressable
#[], #[]=, #addressable_at, #in_range?, #peek, #peek16, #poke16, #range
Methods included from IntegerHelper
#bcd, #bcd_to_i, #format16, #format8, #high_byte, #low_byte, #signed_int8, #uint16
Constructor Details
This class inherits a constructor from Badline::Memory
Instance Method Details
#poke(addr, value) ⇒ Object
5 6 7 8 |
# File 'lib/badline/color_memory.rb', line 5 def poke(addr, value) # Only write the lower 4 bits super(addr, value & 0x0f) end |