]> git.sur5r.net Git - cc65/blobdiff - src/sim65/config.c
Working
[cc65] / src / sim65 / config.c
index afb5d719b338e484620a762060ff2d6f01169bf7..ce1a272f843afeac74f6fd032b3856682cfd0cd1 100644 (file)
@@ -304,7 +304,7 @@ static void ParseMemory (void)
         CollDelete (&L->Attributes, Index);
 
         /* Create the chip instance for the address range */
-        Range = L->End - L->Start;
+        Range = L->End - L->Start + 1;
         CI = NewChipInstance (D->V.SVal, L->Start, Range, &L->Attributes);
 
         /* Delete the "name" attribute */