Class: Rubyboy::Ram

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyboy/ram.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRam

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

#eramObject

Returns the value of attribute eram.



5
6
7
# File 'lib/rubyboy/ram.rb', line 5

def eram
  @eram
end

#hramObject

Returns the value of attribute hram.



5
6
7
# File 'lib/rubyboy/ram.rb', line 5

def hram
  @hram
end

#wram1Object

Returns the value of attribute wram1.



5
6
7
# File 'lib/rubyboy/ram.rb', line 5

def wram1
  @wram1
end

#wram2Object

Returns the value of attribute wram2.



5
6
7
# File 'lib/rubyboy/ram.rb', line 5

def wram2
  @wram2
end