Class: Rubyboy::Ram
- Inherits:
-
Object
- Object
- Rubyboy::Ram
- Defined in:
- lib/rubyboy/ram.rb
Instance Attribute Summary collapse
-
#eram ⇒ Object
Returns the value of attribute eram.
-
#hram ⇒ Object
Returns the value of attribute hram.
-
#wram1 ⇒ Object
Returns the value of attribute wram1.
-
#wram2 ⇒ Object
Returns the value of attribute wram2.
Instance Method Summary collapse
-
#initialize ⇒ Ram
constructor
A new instance of Ram.
Constructor Details
#initialize ⇒ Ram
Returns a new instance of Ram.
7 8 9 10 11 12 |
# File 'lib/rubyboy/ram.rb', line 7 def initialize @eram = Array.new(0x2000, 0) @wram1 = Array.new(0x1000, 0) @wram2 = Array.new(0x1000, 0) @hram = Array.new(0x80, 0) end |
Instance Attribute Details
#eram ⇒ Object
Returns the value of attribute eram.
5 6 7 |
# File 'lib/rubyboy/ram.rb', line 5 def eram @eram end |
#hram ⇒ Object
Returns the value of attribute hram.
5 6 7 |
# File 'lib/rubyboy/ram.rb', line 5 def hram @hram end |
#wram1 ⇒ Object
Returns the value of attribute wram1.
5 6 7 |
# File 'lib/rubyboy/ram.rb', line 5 def wram1 @wram1 end |
#wram2 ⇒ Object
Returns the value of attribute wram2.
5 6 7 |
# File 'lib/rubyboy/ram.rb', line 5 def wram2 @wram2 end |