projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished MPROM support. Fixes #10
[Mograsim.git]
/
plugins
/
net.mograsim.machine
/
src
/
net
/
mograsim
/
machine
/
StandardMainMemoryDefinition.java
diff --git
a/plugins/net.mograsim.machine/src/net/mograsim/machine/StandardMainMemoryDefinition.java
b/plugins/net.mograsim.machine/src/net/mograsim/machine/StandardMainMemoryDefinition.java
index
22be93e
..
235dea1
100644
(file)
--- a/
plugins/net.mograsim.machine/src/net/mograsim/machine/StandardMainMemoryDefinition.java
+++ b/
plugins/net.mograsim.machine/src/net/mograsim/machine/StandardMainMemoryDefinition.java
@@
-1,18
+1,11
@@
package net.mograsim.machine;
package net.mograsim.machine;
-class StandardMainMemoryDefinition extends StandardMemoryDefinition implements MainMemoryDefinition
-{
- private final int cellWidth;
+import net.mograsim.machine.standard.memory.StandardBitVectorMemoryDefinition;
+class StandardMainMemoryDefinition extends StandardBitVectorMemoryDefinition implements MainMemoryDefinition
+{
StandardMainMemoryDefinition(int memoryAddressBits, int cellWidth, long minimalAddress, long maximalAddress)
{
StandardMainMemoryDefinition(int memoryAddressBits, int cellWidth, long minimalAddress, long maximalAddress)
{
- super(memoryAddressBits, minimalAddress, maximalAddress);
- this.cellWidth = cellWidth;
- }
-
- @Override
- public int getCellWidth()
- {
- return cellWidth;
+ super(memoryAddressBits, cellWidth, minimalAddress, maximalAddress);
}
}
}
}