MCPcopy Create free account
hub / github.com/Stewmath/GameYob / initCPU

Function initCPU

arm9/source/gbcpu.cpp:111–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109int ime;
110
111void initCPU()
112{
113 gbRegs.sp.w = 0xFFFE;
114 ime = 1; // Correct default value?
115 halt = 0;
116
117 if (biosOn)
118 {
119 gbRegs.pc.w = 0;
120 gbMode = CGB;
121 }
122 else
123 {
124 gbRegs.pc.w = 0x100;
125 initGameboyMode();
126 }
127}
128
129void enableInterrupts()
130{

Callers 1

initializeGameboyFunction · 0.85

Calls 1

initGameboyModeFunction · 0.85

Tested by

no test coverage detected