comparison src/gba/GBA.cpp @ 92:1ff2c546f5ad

added tick(), which allows one to step through each opcode of gameboy
author Robert McIntyre <rlm@mit.edu>
date Sun, 11 Mar 2012 19:07:31 -0500
parents f9f4f1b99eed
children
comparison
equal deleted inserted replaced
91:613353b7e012 92:1ff2c546f5ad
3744 3744
3745 #else 3745 #else
3746 extern void winlog(const char *, ...); 3746 extern void winlog(const char *, ...);
3747 #endif 3747 #endif
3748 3748
3749 void CPULoop(int _ticks) 3749 void CPULoop2(int _ticks)
3750 { 3750 {
3751 int32 ticks = _ticks; 3751 int32 ticks = _ticks;
3752 int32 clockTicks; 3752 int32 clockTicks;
3753 int32 cpuLoopTicks = 0; 3753 int32 cpuLoopTicks = 0;
3754 int32 timerOverflow = 0; 3754 int32 timerOverflow = 0;
4499 } 4499 }
4500 } 4500 }
4501 } 4501 }
4502 } 4502 }
4503 4503
4504
4505 // RLM:
4506 int CPULoop(int _ticks){
4507 CPULoop2(_ticks);
4508 return 1;
4509 }
4510
4511
4504 struct EmulatedSystem GBASystem = 4512 struct EmulatedSystem GBASystem =
4505 { 4513 {
4506 // emuMain 4514 // emuMain
4507 CPULoop, 4515 CPULoop,
4508 // emuReset 4516 // emuReset