Search found 739 matches

by hlide
Thu Mar 26, 2009 9:29 pm
Forum: PSP Development
Topic: Debug PRX
Replies: 8
Views: 2322

if you are using psplink, you can use stdout and stderr to output on pspsh

EDIT: ah ! kernel prx, oh well never mind.
by hlide
Thu Mar 26, 2009 9:08 pm
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

Well enabling the Instruction Stepping Mode in the Debug view, allows me to step over any function withow breaking the program, even the sceDisplay* or sceGe* ones, but it does show a "No source available for "" " warning with these. so it is like I said : In fact, I need to deb...
by hlide
Thu Mar 26, 2009 10:25 am
Forum: PSP Development
Topic: any plan for prxtool update?
Replies: 22
Views: 9789

@hnaves
to be sure to understand what you posted. Is "load_unk" to be called with prgidx as the third index in program headers ? the one of type LOPROC+a1 (0xFFA1) ? if so, that's a great help, thanx !
by hlide
Thu Mar 26, 2009 8:19 am
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

When i start debugging the app there is some error with the sceDisplayWaitVblankStart function, it complains about something like "GDB is unable to find the start of the function at 0x880a408", i have managed to Step into other sce functions by pointing to the corrent source path, but doe...
by hlide
Tue Mar 24, 2009 8:55 pm
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

Some progress but just some. I need to close FireFox so PSPSH can run properly (displaying a prompt like "host0:>") . And yes debugging is not working properly. When I tried cube.prx (-g -O0), it seemed to work. But with my source (-g O2), I have kind of erratic behavior in the source wind...
by hlide
Mon Mar 23, 2009 11:15 pm
Forum: PSP Development
Topic: [problem] usbhostfs_pc/pspsh in Eclipse
Replies: 2
Views: 1030

by the way option "-v" doesn't work for pspsh.exe. The options parser doesn't consider -v as valid option, why ?
by hlide
Mon Mar 23, 2009 11:13 pm
Forum: PSP Development
Topic: [problem] usbhostfs_pc/pspsh in Eclipse
Replies: 2
Views: 1030

[problem] usbhostfs_pc/pspsh in Eclipse

pspsh doesn't seem able to connect psp as i cannot see any shell prompt. I type "verbose 2" in usbhost_fs.exe console and I got those messages after plugging usb on psp : Connected to device Bulk Write dev 0x347c8, ep 0x2, bytes 0x23ca6c, size 4, timeout 1000 Bulk Write returned 4 Bulk Rea...
by hlide
Mon Mar 23, 2009 10:21 pm
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

I don't understand... I was able to debug cube.prx as stated in your eclipse.pdf yesterday or yesterday but one. but now, when I run pspsh through Eclipse, I have a void console, no message at all. I can type and be sure that they are executed but i cannot see anything except from what I type. I als...
by hlide
Sat Mar 21, 2009 9:22 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 2994

pspSdkSetK1(0) should make it seem like kernel mode, but I dunno whats wrong. why ? sceKernelIsUserModeThread() is probably just inquiring whether if the thread was created as a user thread regardless if we are running a kernel-mode function through syscall. And $k1 register is just a general purpo...
by hlide
Sat Mar 21, 2009 3:40 am
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

Ok found, I just need to have a start.bat (to launch Eclipse for PSPSDK) which setup the environment the right way : @echo off echo Setting up environment for PSPSDK... set PATH=C:\pspsdk\bin set PATH=%PATH%;%SystemRoot%\System32 echo Starting eclipse... call "M:\dev\eclipse\ecl...
by hlide
Sat Mar 21, 2009 2:33 am
Forum: PSP Development
Topic: Win32 native Toolchain for PSPSDK
Replies: 261
Views: 131773

Heimdall, I'm trying to use Eclipse but I have a problem. I installed your last toolchain. I have Eclipse with Qt Integration that I launched I follow your instructions in your .PDF file about Eclipse. When I try to build I get this : **** Build of configuration Default for project Spinning Cube ***...
by hlide
Fri Mar 20, 2009 10:14 pm
Forum: PSP Development
Topic: 2D Acceleration for Nanodesktop ? Can anyone help me ?
Replies: 4
Views: 1840

For instance, JGE : void JGE_Gfx::Gfx_FillRect(int x, int y, int width, int height, PIXEL_TYPE color) { struct VertexColor* vertices = (struct VertexColor*)sceGuGetMemory(2 * sizeof(struct VertexColor)); vertice...
by hlide
Fri Mar 20, 2009 9:49 pm
Forum: PSP Development
Topic: 2D Acceleration for Nanodesktop ? Can anyone help me ?
Replies: 4
Views: 1840

For what I can see : putPixelRGBA8888(int x, int y, int c) : LUI %0, %hi(current_frame_buffer) SLL $a1, $a1, 11 // y' = y * 512 * 4 LW %0, %lo(current_frame_buffer)(%0) SLL $a0, $a0, 2 // x' = x * 4 ADDU $a0, $a0, $a1 // offset = x' + y' ADDU %0, $a0, ...
by hlide
Fri Mar 20, 2009 8:31 pm
Forum: PSP Development
Topic: 2D Acceleration for Nanodesktop ? Can anyone help me ?
Replies: 4
Views: 1840

PutPixel, GetPixel : i'm not sure using GU to do so would accelerate anything, it may be worse indeed.
I guess DrawLine, DrawRect, etc. can benefit from GU.
by hlide
Tue Mar 10, 2009 9:14 pm
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

huh this is just an example to show how we could handle C++ exception to throw when an hardware exception occurs (access to null pointer, divide error, etc.) which are not catchable with the actual psp-gcc. I think if we could tweak the source of exception.prx (not sure about the name) which is a ho...
by hlide
Mon Mar 09, 2009 8:42 am
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

Ok let's imagine we have a kernel prx wich installs a exception handler and that we can call a handler individually for each different cause : void exc_install_handler(int cause, void (*handler)(int, exc_t *exc)); Basically, the general exception we installed through a kernel prx will be called when...
by hlide
Sun Mar 08, 2009 11:54 pm
Forum: PSP Development
Topic: Hooks?
Replies: 12
Views: 4223

I edited heavily the previous post so the stub generator can handle the case when one of first two instructions in the original function contains a relative branch instruction. You need a .S file to contain your stub to overwrite (for each original function to patch, you need a stub function of 8 in...
by hlide
Sun Mar 08, 2009 10:34 pm
Forum: PSP Development
Topic: Hooks?
Replies: 12
Views: 4223

branch control instructions are : J, JAL, JR, JALR, Bxx, etc. NOTE: if one of the first two instructions in the original function is a relative branch transfer, you'll have an issue because you need to recompute the target offset so you need a stub like it if insn2 is a relative branch instruction :...
by hlide
Sun Mar 01, 2009 10:40 pm
Forum: PSP Development
Topic: I need help for gfx management
Replies: 6
Views: 2487

char Sens[10]; ... if (Sens == "Droite") This is not how you compare strings in C. You use strcmp. It's probably working only because your compiler is making all the instances of "Droit' point to the same constant string, but you shouldn't rely on that...
by hlide
Tue Feb 24, 2009 6:39 am
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

if you need a mutex, why not using those : sceKernelCreateMutex sceKernelDeleteMutex sceKernelLockMutex sceKernelLockMutexCB sceKernelTryLockMutex sceKernelUnlockMutex humm... those functions are only available in the SDK or DA SDK meaning I don't know the method signature... more work to do... ok,...
by hlide
Sun Feb 22, 2009 7:21 pm
Forum: PSP Development
Topic: How do i read a crash report from psplink?
Replies: 8
Views: 2784

"sb $zr, 0($v0)" ==> "*((char *)v0) = 0;"

but v0 = 0, so you're trying to writing zero through a null pointer somewhere in your code.
by hlide
Sat Feb 21, 2009 7:27 am
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

if you need a mutex, why not using those :
sceKernelCreateMutex
sceKernelDeleteMutex
sceKernelLockMutex
sceKernelLockMutexCB
sceKernelTryLockMutex
sceKernelUnlockMutex
by hlide
Sat Feb 21, 2009 5:41 am
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

that was what i thought hlide, and started to add a simple threading implementation to gcc based on an old haiku-os implementation that only tels gcc that this device can handle mutexes, however when i throw an exception the mutex locks everything (i guess i got it all wrong from the gcc barely exi...
by hlide
Fri Feb 20, 2009 9:41 am
Forum: PSP Development
Topic: Exception handling capabilities
Replies: 21
Views: 6598

If i'm not wrong, you need to provide a c++ exception handling implementation for PSP in gcc source. Gcc can generate calls to some functions and you need to implement them as they may be dependent on OS. As far as i know psp-gcc has no such implementation.
by hlide
Thu Feb 12, 2009 6:24 am
Forum: PSP Development
Topic: Media Engine and Mp3 decoding
Replies: 23
Views: 21319

Yeah I know you could. But I know Sony's PRX sets up the media engine for decoding mp3 audio, or h.264 video. My question is, when the ME is in that state and decoding "media" can I still run my own code on it by using threads or some other method? Most probably the second processor for *...
by hlide
Sat Feb 07, 2009 5:25 am
Forum: PSP Development
Topic: [ALLEGREX / CPU +FPU +VFPU] isa
Replies: 16
Views: 7208

what does TKS mean ?
by hlide
Mon Feb 02, 2009 3:34 am
Forum: PSP Development
Topic: About RM/RMVB player on psp.NEED HELP!!!
Replies: 26
Views: 25480

NO,MAN. YOU CAN NOT FIND ANYONE USE phone modem TO ACCESS INTERNET IN CHINA .WE USED ADSL & digital cable modem INSTEAD OF IT MANY YEARS AGO. well, that's a great news, but i don't like your tone. It sounds aggressive to me. Avoid those capitalized words here. Anyway, don't expect a hardware RM...
by hlide
Sun Feb 01, 2009 11:56 pm
Forum: PSP Development
Topic: About RM/RMVB player on psp.NEED HELP!!!
Replies: 26
Views: 25480

cooleyes wrote:I am in China, here, most of us use ADSL or more high speed network.
Good to hear, so RM is clearly anachronous.
by hlide
Sun Feb 01, 2009 10:41 pm
Forum: PSP Development
Topic: About RM/RMVB player on psp.NEED HELP!!!
Replies: 26
Views: 25480

There's a problem, 95% of us aren't Chinese. What sites use RMVB these days? huh, when he said "millions of psp players' mind", he means Chinese people. And yes, it sounds as if Chinese people don't have the best access to Internet : mainly a slow phone modem instead of an ADSL or digital...
by hlide
Sat Jan 31, 2009 10:20 am
Forum: PSP Development
Topic: What do we know about VME ?
Replies: 14
Views: 64701

ME code is using "ldl" and "sdl" instructions (normally 64-bit version of lw/sw) heavily and in a way suggesting they are used for a very different purpose : testing if a controller is busy and transferring data from/to a controller. I wouldn't be surprised if it were a special i...