Skip to content

Commit

Permalink
Added some Code to make debugging easier
Browse files Browse the repository at this point in the history
  • Loading branch information
emufreak committed Aug 16, 2014
1 parent cbf7069 commit ebe87e7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LatestBuild
6 changes: 3 additions & 3 deletions iUAE.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5550,7 +5550,7 @@
iOSOpenDevBuildPackageOnAnyBuild = NO;
iOSOpenDevCopyOnBuild = NO;
iOSOpenDevDevice = 192.168.0.12;
iOSOpenDevInstallOnAnyBuild = YES;
iOSOpenDevInstallOnAnyBuild = NO;
iOSOpenDevInstallOnProfiling = YES;
iOSOpenDevRespringOnInstall = YES;
iOSOpenDevUsePackageVersionPList = NO;
Expand All @@ -5572,7 +5572,7 @@
iOSOpenDevBuildPackageOnAnyBuild = NO;
iOSOpenDevCopyOnBuild = NO;
iOSOpenDevDevice = 192.168.0.12;
iOSOpenDevInstallOnAnyBuild = YES;
iOSOpenDevInstallOnAnyBuild = NO;
iOSOpenDevInstallOnProfiling = YES;
iOSOpenDevRespringOnInstall = YES;
iOSOpenDevUsePackageVersionPList = NO;
Expand All @@ -5592,7 +5592,7 @@
iOSOpenDevBuildPackageOnAnyBuild = NO;
iOSOpenDevCopyOnBuild = NO;
iOSOpenDevDevice = 192.168.0.12;
iOSOpenDevInstallOnAnyBuild = YES;
iOSOpenDevInstallOnAnyBuild = NO;
iOSOpenDevInstallOnProfiling = YES;
iOSOpenDevRespringOnInstall = YES;
iOSOpenDevUsePackageVersionPList = NO;
Expand Down
12 changes: 12 additions & 0 deletions uae4all_gp2x_0.7.2a/src/m68k/fame/famec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/* Based on the excellent FAMEC emulator by StËphane Dallongueville */
/****************************************************************************/



#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -1967,8 +1969,18 @@ static FAMEC_EXTRA_INLINE void execute_exception_group_0(s32 vect, u16 inst_reg,
/* -1 La CPU esta detenida debido a un ERROR DE BUS DOBLE (linea) */
/* El PC ha salido de los limites (bucle no en linea) */
/***************************************************************************/

extern long breakpoint = 0;

u32 m68k_emulate(s32 cycles)
{

if(m68kcontext.pc == breakpoint)
{
printf("Ciclos a ejecutar: %d\n",cycles);
}


if (initialised)
{

Expand Down
5 changes: 4 additions & 1 deletion uae4all_gp2x_0.7.2a/src/m68k/m68k_cmn_intrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ static void uae4all_reset(void)

static void m68k_run (void)
{

// uae4all_reset ();
unsigned cycles, cycles_actual=M68KCONTEXT.cycles_counter;
for (;;) {
Expand Down Expand Up @@ -282,7 +283,9 @@ static void m68k_run (void)
m68k_emulate(FAME_INTERRUPTS_PATCH);
else
#endif
m68k_emulate(cycles);

m68k_emulate(1);
//m68k_emulate(cycles);

uae4all_prof_end(0);
#endif
Expand Down

0 comments on commit ebe87e7

Please sign in to comment.