class Zemu::Config::ROM

Read-Only Memory object

Represents a block of memory which is read-only.

Public Class Methods

new() click to toggle source

Constructor.

Takes a block in which the parameters of the memory block can be initialized.

All parameters can be set within this block. They become readonly as soon as the block completes.

@example

Zemu::Config::ROM.new do
    address 0x8000
    size 256
end
Calls superclass method Zemu::Config::Memory::new
# File lib/zemu/config.rb, line 154
def initialize
    super
end

Public Instance Methods

readonly?() click to toggle source
# File lib/zemu/config.rb, line 158
def readonly?
    return true
end