mirror of
https://github.com/Spritetm/minimacplus.git
synced 2024-05-28 14:41:27 +00:00
Speedup
This commit is contained in:
parent
36dcd10658
commit
feaa2434ea
|
@ -484,10 +484,12 @@ void tmeStartEmu(void *rom) {
|
||||||
printf("Done! Running.\n");
|
printf("Done! Running.\n");
|
||||||
while(1) {
|
while(1) {
|
||||||
for (x=0; x<8000000/60; x+=1000) {
|
for (x=0; x<8000000/60; x+=1000) {
|
||||||
for (int i=0; i<100; i++) {
|
for (int i=0; i<10; i++) {
|
||||||
m68k_execute(10);
|
m68k_execute(100);
|
||||||
|
for (int l=0; l<10; l++) {
|
||||||
viaStep(1); //should run at 783.36KHz
|
viaStep(1); //should run at 783.36KHz
|
||||||
sccTick();
|
sccTick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int r=mouseTick();
|
int r=mouseTick();
|
||||||
if (r&MOUSE_BTN) viaClear(VIA_PORTB, (1<<3)); else viaSet(VIA_PORTB, (1<<3));
|
if (r&MOUSE_BTN) viaClear(VIA_PORTB, (1<<3)); else viaSet(VIA_PORTB, (1<<3));
|
||||||
|
|
|
@ -166,7 +166,7 @@ void m68k_instruction();
|
||||||
/* If ON, the enulation core will use 64-bit integers to speed up some
|
/* If ON, the enulation core will use 64-bit integers to speed up some
|
||||||
* operations.
|
* 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
|
/* Set to your compiler's static inline keyword to enable it, or
|
||||||
|
|
Loading…
Reference in New Issue
Block a user