fix unknown-register logging

Wed, 01 Dec 2010 22:01:23 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 01 Dec 2010 22:01:23 +0000
changeset 22
95a309c51464
parent 21
e31d2ede6c6b
child 23
3d964a6aa59b

fix unknown-register logging

src/main.c file | annotate | diff | revisions
     1.1 --- a/src/main.c	Wed Dec 01 21:55:09 2010 +0000
     1.2 +++ b/src/main.c	Wed Dec 01 22:01:23 2010 +0000
     1.3 @@ -41,7 +41,7 @@
     1.4  				((uint32_t)state.ram[address + 3]));
     1.5  	} else {
     1.6  		// I/O register -- TODO
     1.7 -		printf("RD32 %08X [unknown I/O register]\n", address);
     1.8 +		printf("RD32 0x%08X [unknown I/O register]\n", address);
     1.9  	}
    1.10  	return data;
    1.11  }
    1.12 @@ -64,7 +64,7 @@
    1.13  				(state.ram[address + 1]));
    1.14  	} else {
    1.15  		// I/O register -- TODO
    1.16 -		printf("RD16 %08X [unknown I/O register]\n", address);
    1.17 +		printf("RD16 0x%08X [unknown I/O register]\n", address);
    1.18  	}
    1.19  
    1.20  	return data;
    1.21 @@ -86,7 +86,7 @@
    1.22  		data = state.ram[address + 0];
    1.23  	} else {
    1.24  		// I/O register -- TODO
    1.25 -		printf("RD 8 %08X [unknown I/O register]\n", address);
    1.26 +		printf("RD08 0x%08X [unknown I/O register]\n", address);
    1.27  	}
    1.28  
    1.29  	return data;
    1.30 @@ -111,7 +111,7 @@
    1.31  	} else {
    1.32  		switch (address) {
    1.33  			case 0xE43000:	state.romlmap = ((value & 0x8000) == 0x8000); break;	// GCR3: ROMLMAP
    1.34 -			default:		printf("WR32 %08X ==> %02X\n", address, state.romlmap, value); break;
    1.35 +			default:		printf("WR32 0x%08X ==> 0x%08X\n", address, value); break;
    1.36  		}
    1.37  	}
    1.38  }
    1.39 @@ -132,7 +132,7 @@
    1.40  	} else {
    1.41  		switch (address) {
    1.42  			case 0xE43000:	state.romlmap = ((value & 0x8000) == 0x8000); break;	// GCR3: ROMLMAP
    1.43 -			default:		printf("WR16 %08X %d %02X\n", address, state.romlmap, value); break;
    1.44 +			default:		printf("WR16 0x%08X ==> 0x%04X\n", address, value); break;
    1.45  		}
    1.46  	}
    1.47  }
    1.48 @@ -151,7 +151,7 @@
    1.49  	} else {
    1.50  		switch (address) {
    1.51  			case 0xE43000:	state.romlmap = ((value & 0x80) == 0x80); break;	// GCR3: ROMLMAP
    1.52 -			default:		printf("WR 8 %08X %d %02X\n", address, state.romlmap, value); break;
    1.53 +			default:		printf("WR08 0x%08X ==> 0x%02X\n", address, value); break;
    1.54  		}
    1.55  	}
    1.56  }