class Rnes::Rom

Public Class Methods

new(bytes:) click to toggle source

@param [Integer] bytes

# File lib/rnes/rom.rb, line 4
def initialize(bytes:)
  @bytes = bytes
end

Public Instance Methods

bytesize() click to toggle source

@return [Integer]

# File lib/rnes/rom.rb, line 9
def bytesize
  @bytes.length
end
read(address) click to toggle source

@param [Integer] address @param [Integer] value

# File lib/rnes/rom.rb, line 15
def read(address)
  @bytes[address]
end