Wed, 01 Dec 2010 22:15:41 +0000
add LED decode [debug]
src/main.c | file | annotate | diff | revisions |
1.1 --- a/src/main.c Wed Dec 01 22:11:06 2010 +0000 1.2 +++ b/src/main.c Wed Dec 01 22:15:41 2010 +0000 1.3 @@ -157,6 +157,14 @@ 1.4 case 0xE43000: state.romlmap = ((value & 0x8000) == 0x8000); break; // GCR3: ROMLMAP 1.5 default: printf("WR16 0x%08X ==> 0x%04X\n", address, value); break; 1.6 } 1.7 + if (address == 0x4A0000) { 1.8 + printf("\tLED WRITE: %s %s %s %s\n", 1.9 + value & 0x800 ? "-" : "R", 1.10 + value & 0x400 ? "-" : "G", 1.11 + value & 0x200 ? "-" : "Y", 1.12 + value & 0x100 ? "-" : "R" 1.13 + ); 1.14 + } 1.15 } 1.16 } 1.17