disable redundant R/W logging

Thu, 02 Dec 2010 20:42:30 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Thu, 02 Dec 2010 20:42:30 +0000
changeset 36
746fb8d0653e
parent 35
391318413bb2
child 37
87662afa1d98

disable redundant R/W logging

src/main.c file | annotate | diff | revisions
     1.1 --- a/src/main.c	Thu Dec 02 20:19:20 2010 +0000
     1.2 +++ b/src/main.c	Thu Dec 02 20:42:30 2010 +0000
     1.3 @@ -229,7 +229,7 @@
     1.4  		data = RD32(state.ram, mapAddr(address, false), state.ram_size - 1);
     1.5  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
     1.6  		// I/O register space, zone A
     1.7 -		printf("RD32 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
     1.8 +//		printf("RD32 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
     1.9  		switch (address & 0x0F0000) {
    1.10  			case 0x000000:				// Map RAM access
    1.11  				if (address > 0x4007FF) fprintf(stderr, "NOTE: RD32 from MapRAM mirror, addr=0x%08X\n", address);
    1.12 @@ -297,7 +297,7 @@
    1.13  		}
    1.14  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
    1.15  		// I/O register space, zone B
    1.16 -		printf("RD32 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.17 +//		printf("RD32 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.18  		switch (address & 0xF00000) {
    1.19  			case 0xC00000:				// Expansion slots
    1.20  			case 0xD00000:
    1.21 @@ -382,7 +382,7 @@
    1.22  		data = RD16(state.ram, mapAddr(address, false), state.ram_size - 1);
    1.23  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.24  		// I/O register space, zone A
    1.25 -		printf("RD16 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.26 +//		printf("RD16 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.27  		switch (address & 0x0F0000) {
    1.28  			case 0x000000:				// Map RAM access
    1.29  				if (address > 0x4007FF) fprintf(stderr, "NOTE: RD16 from MapRAM mirror, addr=0x%08X\n", address);
    1.30 @@ -450,7 +450,7 @@
    1.31  		}
    1.32  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
    1.33  		// I/O register space, zone B
    1.34 -		printf("RD16 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.35 +//		printf("RD16 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.36  		switch (address & 0xF00000) {
    1.37  			case 0xC00000:				// Expansion slots
    1.38  			case 0xD00000:
    1.39 @@ -535,7 +535,7 @@
    1.40  		data = RD8(state.ram, mapAddr(address, false), state.ram_size - 1);
    1.41  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.42  		// I/O register space, zone A
    1.43 -		printf("RD8 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.44 +//		printf("RD8 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.45  		switch (address & 0x0F0000) {
    1.46  			case 0x000000:				// Map RAM access
    1.47  				if (address > 0x4007FF) fprintf(stderr, "NOTE: RD8 from MapRAM mirror, addr=0x%08X\n", address);
    1.48 @@ -606,7 +606,7 @@
    1.49  		}
    1.50  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
    1.51  		// I/O register space, zone B
    1.52 -		printf("RD8 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.53 +//		printf("RD8 0x%08X ==> ??? %s\n", address, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.54  		switch (address & 0xF00000) {
    1.55  			case 0xC00000:				// Expansion slots
    1.56  			case 0xD00000:
    1.57 @@ -689,7 +689,7 @@
    1.58  		WR32(state.ram, mapAddr(address, false), state.ram_size - 1, value);
    1.59  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.60  		// I/O register space, zone A
    1.61 -		printf("WR32 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.62 +//		printf("WR32 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.63  		switch (address & 0x0F0000) {
    1.64  			case 0x000000:				// Map RAM access
    1.65  				if (address > 0x4007FF) fprintf(stderr, "NOTE: WR32 to MapRAM mirror, addr=0x%08X, data=0x%08X\n", address, value);
    1.66 @@ -757,7 +757,7 @@
    1.67  		}
    1.68  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
    1.69  		// I/O register space, zone B
    1.70 -		printf("WR32 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.71 +//		printf("WR32 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.72  		switch (address & 0xF00000) {
    1.73  			case 0xC00000:				// Expansion slots
    1.74  			case 0xD00000:
    1.75 @@ -842,7 +842,7 @@
    1.76  		WR16(state.ram, mapAddr(address, false), state.ram_size - 1, value);
    1.77  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.78  		// I/O register space, zone A
    1.79 -		printf("WR16 0x%08X ==> 0x%04X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.80 +//		printf("WR16 0x%08X ==> 0x%04X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.81  		switch (address & 0x0F0000) {
    1.82  			case 0x000000:				// Map RAM access
    1.83  				if (address > 0x4007FF) fprintf(stderr, "NOTE: WR16 to MapRAM mirror, addr=0x%08X, data=0x%04X\n", address, value);
    1.84 @@ -910,7 +910,7 @@
    1.85  		}
    1.86  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
    1.87  		// I/O register space, zone B
    1.88 -		printf("WR16 0x%08X ==> 0x%04X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.89 +//		printf("WR16 0x%08X ==> 0x%04X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.90  		switch (address & 0xF00000) {
    1.91  			case 0xC00000:				// Expansion slots
    1.92  			case 0xD00000:
    1.93 @@ -995,7 +995,7 @@
    1.94  		WR8(state.ram, mapAddr(address, false), state.ram_size - 1, value);
    1.95  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.96  		// I/O register space, zone A
    1.97 -		printf("WR8 0x%08X ==> %02X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.98 +//		printf("WR8 0x%08X ==> %02X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
    1.99  		switch (address & 0x0F0000) {
   1.100  			case 0x000000:				// Map RAM access
   1.101  				if (address > 0x4007FF) fprintf(stderr, "NOTE: WR8 to MapRAM mirror, addr=%08X, data=%02X\n", address, value);
   1.102 @@ -1063,7 +1063,7 @@
   1.103  		}
   1.104  	} else if ((address >= 0xC00000) && (address <= 0xFFFFFF)) {
   1.105  		// I/O register space, zone B
   1.106 -		printf("WR8 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
   1.107 +//		printf("WR8 0x%08X ==> 0x%08X %s\n", address, value, m68k_get_reg(NULL, M68K_REG_SR) & 0x2000 ? "[SV]" : "");
   1.108  		switch (address & 0xF00000) {
   1.109  			case 0xC00000:				// Expansion slots
   1.110  			case 0xD00000: