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