Previous 15994 Revisions Next

r6076 Wednesday 14th October, 2009 at 11:54:57 UTC by Nathan Woods
Fixes for problems with TI99/4A disks. [Barry Nelson]
[docs]messnew.txt
[src/mess/tools/imgtool/modules]ti99.c

src/mess/tools/imgtool/modules/ti99.c
r6075r6076
39953995   /* open disk image at level 2 */
39963996   image->type = L2I_DSK;
39973997
3998   /* @BN@ */
3999   /* Copy in the allocation bit map! */
4000   memcpy(image->abm, vib.abm, 200);
39984001   /* first compute AU size and number of AUs */
39994002   totphysrecs = get_UINT16BE(vib.totphysrecs);
40004003
r6075r6076
42564259         snprintf(ent->attr, sizeof(ent->attr) / sizeof(ent->attr[0]), "DIR");
42574260
42584261         /* len in physrecs */
4259         ent->filesize = 1;
4262         /* @BN@ return length in bytes */
4263         /* ent->filesize = 1; */
4264         ent->filesize = 256;
42604265
42614266         /* recurse subdirectory */
42624267         iter->listing_subdirs = 0;   /* no need to list subdirs as only the
r6075r6076
42984303                     fdr.reclen,
42994304                     (fdr.flags & fdr99_f_wp) ? " R/O" : "");
43004305         /* len in physrecs */
4301         ent->filesize = get_UINT16BE(fdr.fphysrecs);
4306         /* @BN@ return length in bytes */
4307         /* ent->filesize = get_UINT16BE(fdr.fphysrecs); */
4308         ent->filesize = (get_UINT16BE(fdr.fphysrecs)+1)*256;
43024309
43034310         iter->index[iter->level]++;
43044311      }
r6075r6076
43914398         snprintf(ent->attr, sizeof(ent->attr) / sizeof(ent->attr[0]), "DIR");
43924399
43934400         /* len in physrecs */
4394         ent->filesize = 2;
4401         /* @BN@ return length in bytes */
4402         /* ent->filesize = 2; */
4403         ent->filesize = 512;
43954404
43964405         /* recurse subdirectory */
43974406         /*iter->listing_subdirs = 1;*/
r6075r6076
44384447                     fdr.reclen,
44394448                     (fdr.flags & fdr99_f_wp) ? " R/O" : "");
44404449         /* len in physrecs */
4441         ent->filesize = get_win_fdr_fphysrecs(&fdr);
4450         /* @BN@ return length in bytes */
4451         /* ent->filesize = get_win_fdr_fphysrecs(&fdr); */
4452         ent->filesize = (get_win_fdr_fphysrecs(&fdr)+1)*256;
44424453
44434454         iter->index[iter->level]++;
44444455      }
r6075r6076
44644475         freeAUs++;
44654476   }
44664477
4467   *size = freeAUs;
4478   /* @BN@ return free space in bytes */
4479   /*    *size = freeAUs; */
4480   *size = freeAUs*256;
44684481
44694482   return IMGTOOLERR_SUCCESS;
44704483}
docs/messnew.txt
r6075r6076
7474
7575Imgtool Changes:
7676----------------
77(none)
77- Fixes for problems with TI99/4A disks.  [Barry Nelson]
7878
7979
8080

Previous 15994 Revisions Next


© 1998-2018 The MESS Team