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