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

Function BreakToText

src/drivers/win/debugger.cpp:1168–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1166}
1167
1168char* BreakToText(unsigned int num)
1169{
1170 static char str[300], chr[8];
1171
1172 sprintf(str, "$%04X", watchpoint[num].address);
1173 if (watchpoint[num].endaddress) {
1174 sprintf(chr, "-%04X", watchpoint[num].endaddress);
1175 strcat(str,chr);
1176 }
1177 if (watchpoint[num].flags&WP_E) strcat(str,":E"); else strcat(str,":-");
1178 if (watchpoint[num].flags&BT_P) strcat(str,"P"); else if (watchpoint[num].flags&BT_S) strcat(str,"S"); else strcat(str,"C");
1179 if (watchpoint[num].flags&WP_R) strcat(str,"R"); else strcat(str,"-");
1180 if (watchpoint[num].flags&WP_W) strcat(str,"W"); else strcat(str,"-");
1181 if (watchpoint[num].flags&WP_X) strcat(str,"X"); else strcat(str,"-");
1182 if (watchpoint[num].flags&WP_F) strcat(str,"F"); else strcat(str,"-");
1183
1184// ################################## Start of SP CODE ###########################
1185
1186 if (watchpoint[num].desc && strlen(watchpoint[num].desc))
1187 {
1188 strcat(str, " ");
1189 strcat(str, watchpoint[num].desc);
1190 strcat(str, " ");
1191 }
1192
1193 if (watchpoint[num].condText && strlen(watchpoint[num].condText))
1194 {
1195 strcat(str, " Condition:");
1196 strcat(str, watchpoint[num].condText);
1197 }
1198// ################################## End of SP CODE ###########################
1199
1200 return str;
1201}
1202
1203void AddBreakList() {
1204 SendDlgItemMessage(hDebug,IDC_DEBUGGER_BP_LIST,LB_INSERTSTRING,-1,(LPARAM)(LPSTR)BreakToText(numWPs-1));

Callers 5

FCEUD_DebugBreakpointFunction · 0.85
AddBreakListFunction · 0.85
EditBreakListFunction · 0.85
FillBreakListFunction · 0.85
EnableBreakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected