1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-02 15:29:33 +00:00

Correct the END value for a segment so that it shows the last address in

use by this segment, not the start of the following one.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1148 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-02-06 13:36:25 +00:00
parent 5fa500a78b
commit 90fc74e835

View File

@ -632,8 +632,13 @@ void PrintSegmentMap (FILE* F)
/* Print empty segments only if explicitly requested */
if (VerboseMap || S->Size > 0) {
/* Print the segment data */
long End = S->PC + S->Size;
if (S->Size > 0) {
/* Point to last element addressed */
--End;
}
fprintf (F, "%-20s %06lX %06lX %06lX\n",
S->Name, S->PC, S->PC + S->Size, S->Size);
S->Name, S->PC, End, S->Size);
}
}