Mercurial > repos > blastem
diff dis.c @ 2251:80dde7fb445b
Fix bug in disassembler SCD header handling
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Nov 2022 23:39:14 -0800 |
parents | 53411df7fc71 |
children | ff726f53d75a |
line wrap: on
line diff
--- a/dis.c Sun Nov 27 23:38:48 2022 -0800 +++ b/dis.c Sun Nov 27 23:39:14 2022 -0800 @@ -197,7 +197,7 @@ add_label(context, "reset", filebuf[2] << 16 | filebuf[3]); } } else if (filesize > 0x1000) { - long boot_size = filesize > (32*1024) ? 32*1024 : filesize; + long boot_size = filesize > (16*2352) ? 16*2352 : filesize; filebuf = malloc(boot_size); if (fread(filebuf, 1, boot_size, f) != boot_size) { fprintf(stderr, "Failure while reading file %s\n", argv[1]);