Is It A Way To Put Littlejohn Nes Emu At 166 Mhz


renejr902

Active Member
Joined
Apr 19, 2008
Messages
767
Age
44
Location
CANADA, Montreal
Website
Visit site
is it a way to put littlejohn nes emu at 166 mhz

when i start the emu it said the speed is 133mhz, so i thought it could be change.

i want to play games with vsync On, with no slow down.

thanks for answer.



Is pal nes games run better than ntsc games on this emu ? i didnt try pal games.
 
im very interested to do it. Can you help me, i dont find it. where is this guide.

thanks a lot for help

i will edit all emus if i can :)

note: the only info i have is something about this website : gp32world.co.uk , but the website dont exist anymore, so i can find the guide
 
Last edited by a moderator:
i download a hexeditor and open ljp32.fxe

but i dont know where to start. some years ago i edited a nes game to change the color background, but it was so long ago, i dont remember what i did.

thanks for help
 
i did a search in asci format with the word mhz, and i found a line written 133mhz. do i have to change it to 166. is it simple like that ?


thanks for help



i read that somewhere, could it help:

Phocks Dec 10 2003, 11:08 AM Post #1


GP32 User


Group: Members

Joined: 30-November 03
Member No.: 1762



How can I overclock lj? (To be able to play games like castlevania 3 and rockman 6 at fs0 with sound) All signs point to it being possible, the fact that the clock speed is shown in the lower left corner of the rom browser screen and even definitions in the source for the higher clock speeds within gpmain.c (From version 0.3),
QUOTE
#define CLOCK166 4

....

case CLOCK166:
GpClockSpeedChange (165000000, 0x2f001, 3);
break;



Is there some way to change the clock speed that I haven't seen, or would I have to try to find just what within the code I would have to change to set the 166 to the clock speed and hope that it compiles (Would be an earlier version, too)?
 
Last edited by a moderator:
now when i start the emu, the intro screen said 166 mhz. but i dont think the emu run at 166mhz because i saw no improvement with the slowest game.

intro screen said 166mhz, but game screen just before loading always said 133mhz.
i think i just change the number 133 for 166. but in reality the speed is not changed.

isnt ?

thanks for help


***NOTE: i just change others things and i got 166 mhz in the game screen too. But it seem just the number are changed , no better speed
thanks for help
 
i just opened gpmain.c with hexedit and i got that, could it help to overclock it to 166 mhz:

/*******************************************************
*COPYRIGHT NODE : bgmain.c *
* Ver 2000.09.26 *
* All right for this code is reserved by GAMEPARK *
* Developer : promoos *
********************************************************/

#include "ljohnGP.h"

#include "gpdef.h"
#include "gpstdlib.h"
#include "gpgraphic.h"
#include "gpfont.h"
#include "gpmm.h"
#include "gpstdio.h"

//////////////////////// global variable //////////////////////

/********************************************************
* GpMain(void)
* This procedure is main loop.
* This is close to BingGo Machine Level.
*********************************************************/
#ifdef __GNUC__
extern void EnableCache (void);
#endif

void GpMain(void * arg)
{
GpClockSpeedChange(67800000, 0x69032, 3);
//CPU_alignment_and_cache();
// EnableCache();
LaunchNesEmu();
}

/*
1 - 16.7 Mhz
2 - 33 MhZ (1)
3 - 33 Mhz (2)
4 - 67.5 Mhz
5 - 80 Mhz
6 - 102 Mhz
7 - 132 Mhz

int clock_settings [7]={16500000,33000000,33000000,67500000,80000000,102000000,132000000};
int div_settings[7]={ 0x71142,0x24003,0x3a013,0x25021,0x48012,0x1a020,0x3a011};
int clockdiv_settings[7]={0,0,0,2,1,2,3};

Sinon voici la fonction que j'utilisais pour mon emu pour changer la frequence a la voler :



// pour overclock
#define CLOCK40 0
#define CLOCK66 1
#define CLOCK133 2
#define CLOCK156 3
#define CLOCK166 4
void SetClockSpeed(int nClockSpeed);


void SetClockSpeed(int nClockSpeed)
{
// clkdvn MCLK HCLK PCLK
// 0 1 1 1
// 1 1 1 1/2
// 2 1 1/2 1/2
// 3 1 1/2 1/4

switch (nClockSpeed)
{
case CLOCK40:
// 40, 3
GpClockSpeedChange (40000000, 0x48013, 1);
break;
case CLOCK66:
// 67.8, 3
GpClockSpeedChange(67800000, 0x69032, 3);
break;
case CLOCK133:
// 133, 3
GpClockSpeedChange(132000000, 0x3a011, 3);
break;
case CLOCK156:
GpClockSpeedChange (156000000, 0x2c001, 3);
break;
case CLOCK166:
GpClockSpeedChange (165000000, 0x2f001, 3);
break;
}
}
*/
 
Last edited by a moderator:
ok did some progress.

1. i unfxe littlejohn. ljgp32_03.fxe
2. i use bf2xec ljgp32_03.fxe and use parameter -f ( explanation of parameter f: Fast decompression (sets 132mhz clockspeed)

WOW after that i found the the code: 0029DE07 in hex editor. before changing anything i tried the file, the file is in formtet .gxb. and the file work perfectly normal.

so now i exchange code 0029de07 for 80F5E409 to get the file to 166 mhz.
BUT THE PROBLEM IS: i dont find any Cpu parameter code in the file, only mhz cpu code. so i made several files and tried to exchange the code before 0029de07 and after 0029de07 with the parameter code for 166mhz cpu.

the FILES DONT start. its loading , but after that it reboot.


note: is it correct that i use the -f parameter for got the 132 mhz code cpu.

WHERE IS THE PARAMETER CPU CODE , only got the cpu mhz code


please try to help, i think i can do it.

THANKS FOR TRYING TO HELP
 
Back
Top