From feaa2434ea3c4fc5097ed45aec39ae1a0ce7ab61 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Tue, 31 Oct 2017 17:21:41 -0700 Subject: [PATCH] Speedup --- components/tme/emu.c | 6 ++++-- components/tme/m68kconf.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/tme/emu.c b/components/tme/emu.c index 296d026..2c2c33c 100644 --- a/components/tme/emu.c +++ b/components/tme/emu.c @@ -484,10 +484,12 @@ void tmeStartEmu(void *rom) { printf("Done! Running.\n"); while(1) { for (x=0; x<8000000/60; x+=1000) { - for (int i=0; i<100; i++) { - m68k_execute(10); + for (int i=0; i<10; i++) { + m68k_execute(100); + for (int l=0; l<10; l++) { viaStep(1); //should run at 783.36KHz sccTick(); + } } int r=mouseTick(); if (r&MOUSE_BTN) viaClear(VIA_PORTB, (1<<3)); else viaSet(VIA_PORTB, (1<<3)); diff --git a/components/tme/m68kconf.h b/components/tme/m68kconf.h index 9f497d0..4ca9682 100644 --- a/components/tme/m68kconf.h +++ b/components/tme/m68kconf.h @@ -166,7 +166,7 @@ void m68k_instruction(); /* If ON, the enulation core will use 64-bit integers to speed up some * operations. */ -#define M68K_USE_64_BIT OPT_ON +#define M68K_USE_64_BIT OPT_OFF /* Set to your compiler's static inline keyword to enable it, or