called by the cpu to perform logging if CDLogging is enabled
| 493 | |
| 494 | //called by the cpu to perform logging if CDLogging is enabled |
| 495 | void LogCDVectors(int which){ |
| 496 | int j; |
| 497 | j = GetPRGAddress(which); |
| 498 | if(j == -1) return; |
| 499 | |
| 500 | if(!(cdloggerdata[j] & 2)){ |
| 501 | cdloggerdata[j] |= 0x0E; // we're in the last bank and recording it as data so 0x1110 or 0xE should be what we need |
| 502 | datacount++; |
| 503 | if(!(cdloggerdata[j] & 1))undefinedcount--; |
| 504 | } |
| 505 | j++; |
| 506 | |
| 507 | if(!(cdloggerdata[j] & 2)){ |
| 508 | cdloggerdata[j] |= 0x0E; |
| 509 | datacount++; |
| 510 | if(!(cdloggerdata[j] & 1))undefinedcount--; |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | bool break_on_unlogged_code = false; |
| 515 | bool break_on_unlogged_data = false; |
no test coverage detected