src/main.c

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