small amt of wd279x tidying

Tue, 28 Dec 2010 22:37:21 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 28 Dec 2010 22:37:21 +0000
changeset 73
05ef5f3c5246
parent 72
c66c98c7a768
child 74
51cbc7a44cd9

small amt of wd279x tidying

src/wd279x.c file | annotate | diff | revisions
     1.1 --- a/src/wd279x.c	Tue Dec 28 21:47:43 2010 +0000
     1.2 +++ b/src/wd279x.c	Tue Dec 28 22:37:21 2010 +0000
     1.3 @@ -4,7 +4,9 @@
     1.4  #include "musashi/m68k.h"
     1.5  #include "wd279x.h"
     1.6  
     1.7 +#ifndef WD279X_DEBUG
     1.8  #define NDEBUG
     1.9 +#endif
    1.10  #include "utils.h"
    1.11  
    1.12  /// WD2797 command constants
    1.13 @@ -412,7 +414,6 @@
    1.14  
    1.15  					for (int i=0; i<temp; i++) {
    1.16  						// Calculate the LBA address of the required sector
    1.17 -//						lba = ((((ctx->track * ctx->geom_heads) + ctx->head) * ctx->geom_spt) + ((ctx->sector + i - 1) % ctx->geom_spt)) * ctx->geom_secsz;
    1.18  						// LBA = (C * nHeads * nSectors) + (H * nSectors) + S - 1
    1.19  						lba = (((ctx->track * ctx->geom_heads * ctx->geom_spt) + (ctx->head * ctx->geom_spt) + ctx->sector) + i) - 1;
    1.20  						// convert LBA to byte address