X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=blobdiff_plain;f=plugins%2Fnet.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2FStandardMainMemoryDefinition.java;h=235dea1b10573ceb06aa3fccc458da526000a807;hp=22be93eef08d3c5f904e6db0d17d2bd62293f8d3;hb=b5d55c59d7069171bd928e4a945d9185ee4bc2b0;hpb=f098cd47d06be0cc654532a5fad0e5e89f0ef93c 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 22be93ee..235dea1b 100644 --- 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; -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) { - super(memoryAddressBits, minimalAddress, maximalAddress); - this.cellWidth = cellWidth; - } - - @Override - public int getCellWidth() - { - return cellWidth; + super(memoryAddressBits, cellWidth, minimalAddress, maximalAddress); } }