I'm blu_eye4, a new italian user so, if my english is bad, excuse me...
Well, I'm a beginner coder and I'm learning C programming language: I'm not learn it at school, so I don't know many things and feature...
This is the code:
Code: Select all
#include "pspkern.h"
#include <pspkernel.h>
#include <pspiofilemgr.h>
#include <pspctrl.h>
#include "dump.h"
#include <psppower.h>
PSP_MODULE_INFO("esercitazione", 0, 1, 0);
#define printf pspDebugScreenPrintf
int sceIoRead(SceUID fd, void *data, SceSize size);
int *getcwd(char *buffer, size_t length);
int sceDisplayWaitVblankStart();
int sceIoMkdir(const char *dir, SceMode mode);
int main(void)
{
SceCtrlData pad;
int done = 0;
pspDebugScreenInit();
pspDebugScreenClear();
SetupCallbacks();
char path[256];
getcwd(path, 256);
printf("Siamo nella directory %s\n\n", path);
printf("premere X per cambiare frequenza cpu e bus\n");
printf("premere O per dump memoria\n");
for(;;){
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons != 0){
if(pad.Buttons & PSP_CTRL_CROSS)
{
scePowerSetClockFrequency(100,100,50);
printf("frequenza attuale cpu: %d mHz\n", scePowerGetCpuClockFrequency());
printf("frequenza attuale bus: %d mHz\n", scePowerGetBusClockFrequency());
}
if(pad.Buttons & PSP_CTRL_CIRCLE)
{
dump_memory();
printf("\n\nFatto\n\n");
}
}
sceDisplayWaitVblankStart();
return 0;
}
}
Why? How can I resolve?
Thanks a lot for your time and excuse me if there are some grammatical errors :)
ah... I've given some of code from SDK... the dumping function is given from the example...