Skip to content

Commit

Permalink
md_file.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido committed Mar 14, 2022
1 parent 6ca3c1d commit 31ad454
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/md_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ void md_decode_file(FILE *infd, FILE *ofd)
md_skip(infd, 6);

w = md_rword(infd);
fprintf(ofd, "\n DataSize: %oB (%d)", w, w);
fprintf(ofd, "\n DataSize: %07o (%d)", w, w);
w = md_rword(infd);
fprintf(ofd, "\n CodeSize: %oB (%d)\n\n", w, w);
fprintf(ofd, "\n CodeSize: %07o (%d)\n\n", w, w);
md_rword(infd);

// Import section
Expand Down Expand Up @@ -106,7 +106,7 @@ void md_decode_file(FILE *infd, FILE *ofd)
// Entries section
if (w == 0203)
{
fprintf(ofd, "ENTRIES\n");
fprintf(ofd, "PROCEDURES\n");
uint16_t n = md_rword(infd);
uint16_t a = 0;

Expand All @@ -115,7 +115,7 @@ void md_decode_file(FILE *infd, FILE *ofd)
while (n-- > 1)
{
fprintf(ofd, "%7d: %07o\n", a, md_rword(infd));
a += 2;
a ++;
}
w = md_rword(infd);
fprintf(ofd, "\n");
Expand Down

0 comments on commit 31ad454

Please # to comment.