MCPcopy Create free account
hub / github.com/TASEmulators/fceux / LogCDVectors

Function LogCDVectors

src/debug.cpp:495–512  ·  view source on GitHub ↗

called by the cpu to perform logging if CDLogging is enabled

Source from the content-addressed store, hash-verified

493
494//called by the cpu to perform logging if CDLogging is enabled
495void 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
514bool break_on_unlogged_code = false;
515bool break_on_unlogged_data = false;

Callers 1

X6502_RunFunction · 0.85

Calls 1

GetPRGAddressFunction · 0.85

Tested by

no test coverage detected