mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +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:
parent
5fa500a78b
commit
90fc74e835
@ -632,8 +632,13 @@ void PrintSegmentMap (FILE* F)
|
|||||||
/* Print empty segments only if explicitly requested */
|
/* Print empty segments only if explicitly requested */
|
||||||
if (VerboseMap || S->Size > 0) {
|
if (VerboseMap || S->Size > 0) {
|
||||||
/* Print the segment data */
|
/* 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",
|
fprintf (F, "%-20s %06lX %06lX %06lX\n",
|
||||||
S->Name, S->PC, S->PC + S->Size, S->Size);
|
S->Name, S->PC, End, S->Size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user