Added View for micro instruction editor
[Mograsim.git] / net.mograsim.machine / src / net / mograsim / machine / MemoryDefinition.java
index 5f42d10..78e1e4e 100644 (file)
@@ -34,7 +34,7 @@ public interface MemoryDefinition {
         */
        default long size()
        {
-               return getMaximalAddress() - getMinimalAddress();
+               return getMaximalAddress() - getMinimalAddress() + 1;
        }
        
        public static MemoryDefinition create(int memoryAddressBits, long minimalAddress, long maximalAddress)