|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.sim.memory.AbstractMemory
jmce.sim.memory.PlainMemory
jmce.sim.memory.BankedMemory
jmce.yaze.Memory
public class Memory
Yaze memory manager implementation.
According to documentation 16 bank of 64 KB are installed and are accessed in page of 4 KB each.
Field Summary |
---|
Fields inherited from class jmce.sim.memory.PlainMemory |
---|
memory, tmpMemory |
Fields inherited from class jmce.sim.memory.AbstractMemory |
---|
size, vms |
Fields inherited from class jmce.sim.AbstractPeripheral |
---|
cpu |
Fields inherited from interface jmce.yaze.YazeConstants |
---|
BDOS_LENGTH, CCP_LENGTH, CONDAT, CONSTA, CPM_LENGTH, FDC_CMD, FDC_CMD_READ, FDC_CMD_WRITE, FDC_DMA_HI, FDC_DMA_LOW, FDC_DRIVE, FDC_SECTOR, FDC_STATUS, FDC_STATUS_ERROR, FDC_STATUS_SUCCESS, FDC_TRACK_HI, FDC_TRACK_LOW, MMU_PAGE_FRAME, MMU_PAGE_HI, MMU_PAGE_LOW, TERMINATE |
Constructor Summary | |
---|---|
Memory()
|
Method Summary | |
---|---|
void |
registerCPU(CPU cpu)
Register a parent CPU for future reference. |
void |
reset(CPU cpu)
|
void |
writeMemory(Memory m,
int address,
int value,
int oldValue)
Called when a memory write event occours. |
Methods inherited from class jmce.sim.memory.BankedMemory |
---|
get, getBank, getNumBank, getNumPage, getPageMap, getPageSize, getSharedSize, getSharedStart, initMmu, isMmuInitialized, reset, set, setBank, setNumBank, setNumPage, setPageMap, setPageSize, setSharedSize, setSharedStart, showMemory, toString |
Methods inherited from class jmce.sim.memory.PlainMemory |
---|
allocMemory, copyMemory, setSize |
Methods inherited from class jmce.sim.AbstractPeripheral |
---|
idle, setIdle, setLive |
Methods inherited from class jmce.sim.AbstractHardware |
---|
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Peripheral |
---|
idle |
Methods inherited from interface jmce.sim.Hardware |
---|
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName |
Constructor Detail |
---|
public Memory()
Method Detail |
---|
public void registerCPU(CPU cpu) throws SIMException
Peripheral
registerCPU
in interface Peripheral
registerCPU
in class AbstractPeripheral
SIMException
public void reset(CPU cpu) throws SIMException
reset
in interface ResetListener
SIMException
public void writeMemory(Memory m, int address, int value, int oldValue) throws SIMException
MemoryWriteListener
This method is called when a memory write operation occours in the specified memory.
writeMemory
in interface MemoryWriteListener
m
- - Memory involved in the write operation.address
- - Address written.value
- - Value written.oldValue
- - Old value of this memory location.
SIMException
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |