Class Memory

  extended by org.razvan.jzx.BaseComponent
      extended by org.razvan.jzx.BaseMemory
          extended by org.razvan.jzx.v128.Memory

public class Memory
extends BaseMemory

The 128k model specialization of the BaseMemory class.

Razvan Surdulescu (c) 2001 - 2006
You may use and distribute this software for free provided you include this copyright notice. You may not sell this software, use my name for publicity reasons or modify the code without permission from me.

Field Summary
Fields inherited from class org.razvan.jzx.BaseMemory
m_frame, m_frameToPage, m_page, m_screen, PAGE_SIZE, RAM0, RAM1, RAM2, RAM3, RAM4, RAM5, RAM6, RAM7, ROM0, ROM1, ROM2, ROM3
Fields inherited from class org.razvan.jzx.BaseComponent
m_logger, m_spectrum
Constructor Summary
Method Summary
 void init(BaseSpectrum spectrum, ILogger logger)
          Load the ROM files from "roms/128a.rom" and "roms/128b.rom"
 void reset()
          Initialize all memory pages, except the ROM, to random values.
Methods inherited from class org.razvan.jzx.BaseMemory
getBytes, load, pageIn, read16, read8, readROM, terminate, toString, write16, write8
Methods inherited from class org.razvan.jzx.BaseComponent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public Memory()
Method Detail


public void init(BaseSpectrum spectrum,
                 ILogger logger)
Load the ROM files from "roms/128a.rom" and "roms/128b.rom"

init in class BaseMemory
See Also:
BaseMemory.pageIn(int, int)


public void reset()
Initialize all memory pages, except the ROM, to random values.

Specified by:
reset in class BaseComponent