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

Method parse

src/drivers/win/memwatch.cpp:262–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 void parse(WORD ctl)
263 {
264 char TempArray[16];
265 GetDlgItemText(hwndMemWatch,ctl,TempArray,16);
266 TempArray[15]=0;
267
268 int x = 0;
269 for (x = 0; x < 15; x++)
270 {
271 if (!(TempArray[x] == ' '))
272 break;
273 } //The point of this loop is to ignore spaces at the begginning of a address box
274
275 valid = hex = twobytes = false;
276 switch(TempArray[x])
277 {
278 case 0:
279 break;
280 case '!':
281 twobytes=true;
282 addr=FastStrToU16(TempArray+x+1,valid);
283 break;
284 case 'x':
285 hex = true;
286 valid = true;
287 addr=FastStrToU16(TempArray+x+1,valid);
288 break;
289 case 'X':
290 hex = twobytes = true;
291 valid = true;
292 addr = FastStrToU16(TempArray+x+1,valid);
293 break;
294 default:
295 valid = true;
296 addr=FastStrToU16(TempArray+x,valid);
297 break;
298 }
299 }
300 bool valid, twobytes, hex;
301 uint16 addr;
302} mwrecs[MWNUM];

Callers 1

MemWatchCallBFunction · 0.45

Calls 2

GetDlgItemTextFunction · 0.85
FastStrToU16Function · 0.85

Tested by

no test coverage detected