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

Function X6502_Init

src/x6502.cpp:405–427  ·  view source on GitHub ↗

* Initializes the 6502 CPU **/

Source from the content-addressed store, hash-verified

403* Initializes the 6502 CPU
404**/
405void X6502_Init(void)
406{
407 unsigned int i;
408
409 // Initialize the CPU structure
410 memset((void *)&X,0,sizeof(X));
411
412 for(i = 0; i < sizeof(ZNTable); i++)
413 {
414 if(!i)
415 {
416 ZNTable[i] = Z_FLAG;
417 }
418 else if ( i & 0x80 )
419 {
420 ZNTable[i] = N_FLAG;
421 }
422 else
423 {
424 ZNTable[i] = 0;
425 }
426 }
427}
428
429extern int StackAddrBackup;
430void X6502_Power(void)

Callers 1

FCEUI_InitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected