Search found 15 matches

by korskarn
Sun Feb 12, 2006 11:06 pm
Forum: PSP Development
Topic: [question] Ramdrive, with custom mapping?
Replies: 2
Views: 1666

Look at how the "sceIoAddDrv" function is used in gdb-userlib.c in the SDK
It is also used in stdio.c
by korskarn
Mon Jan 30, 2006 2:10 am
Forum: PSP Development
Topic: Many function names extracted from IPL code
Replies: 0
Views: 1457

Many function names extracted from IPL code

Likely someone has already done this, but just in case.... I found many function names in the IPL string table after decrypting it, and perhaps some of them could be of use to figure out missing NID names (if this has not already been done with these strings coming from the IPL) . Here are the strin...
by korskarn
Mon Jan 23, 2006 10:08 am
Forum: PSP Development
Topic: VFPU help
Replies: 11
Views: 4189

I see something that might be the cause of the crash, depending on how the compiler interprets the value... in the lv_q instruction, there is a numerical value that is the offset relative to the address int he register a0. For a 4x4 matrix, these offsets would be 0, 16, 32 and 48 bytes, yet in the c...
by korskarn
Mon Jan 23, 2006 8:12 am
Forum: PSP Development
Topic: VFPU help
Replies: 11
Views: 4189

I don't see whats causing the crash. Can you try to use your DLog function just before loading the matrix? That way we can see if its the matrix load code that crashes or something before. If it crashes in the matrix code, try also to use DLog between each of the 4 lv.q and see at which one it crash...
by korskarn
Sun Jan 22, 2006 11:45 pm
Forum: PSP Development
Topic: VFPU yummy goodness: instruction prefixes and rotation
Replies: 9
Views: 2971

chp wrote:Also, lv.s/sv.s do not require more than 4 bytes of alignment it seems (as I suspected before)
I can confirm lv.s/sv.s are word aligned, and lv.q/sv.q are qword aligned

What do you mean by "data-functions"?
If its all the load/store instructions, prefixing has no effect on them.
by korskarn
Sun Jan 22, 2006 11:34 pm
Forum: PSP Development
Topic: VFPU help
Replies: 11
Views: 4189

Does this look about right? Looks ok to me, except that as far as I know, there is no b0 register? The 4th parameter is a cache bypass flag; whether to write through (0) or write back (1) Thats for the store instruction., which indeed has a fourth "wb" parameter. I don't think its used fo...
by korskarn
Sun Jan 22, 2006 2:07 pm
Forum: PSP Development
Topic: VFPU help
Replies: 11
Views: 4189

but I wasn't sure how to get the results back out The lv_q instruction is "Load Quad Word to VFPU", so to get the result out, you just do the opposite: "Save Quad Word from VFPU", which is sv_q The parameters of the load instruction are: 1. The destination VFPU register, 2. Offs...
by korskarn
Sun Jan 22, 2006 1:31 pm
Forum: PSP Development
Topic: VFPU yummy goodness: instruction prefixes and rotation
Replies: 9
Views: 2971

Yeah, I was proposing that sequence as an experiment, but I didn't think it would be faster than two independent vrots. Is there some documentation about the latency/throughput of the VFPU instructions? Or even some documentation about what all the instructions do? Some are not obvious from the opc...
by korskarn
Sun Jan 22, 2006 11:40 am
Forum: PSP Development
Topic: VFPU yummy goodness: instruction prefixes and rotation
Replies: 9
Views: 2971

For input registers, the VFPU also supports absolute values and negative absolute values. I don't know if the homebrew binutils supports the absolute values, but the hardware does. In the constants that can be used, 1/6 is also available. About the vrot functions, multiple sines are possible (but on...
by korskarn
Fri Jan 20, 2006 10:23 pm
Forum: PSP Development
Topic: purpose of 0x89f80000~0x89f80040
Replies: 5
Views: 1976

Did you find anything of interest in that address range? This is in the nromal user main ram which is 24 megs between 0x88800000 - 0x89FFFFFF so I guess it could be just about anything... It's the user main ram, but from the cache kernel memory segment. The same physicaly memory is mapped at more th...
by korskarn
Thu Jan 12, 2006 10:42 am
Forum: PSP Development
Topic: Little help here - allegrex specific opcode and memory map
Replies: 11
Views: 4453

I just wondering about the rest of bits. What they do for? Register? Imm? I think they're too much for registers. Any ideas? bitrev rd, rt Bits 0-10 are always 1010010000 (left = most significant) Bits 11-15 are the rs register (where the result is stored) Bits 16-20 are the rt register Bits 21-25 ...
by korskarn
Wed Jan 11, 2006 10:43 pm
Forum: PSP Development
Topic: Little help here - allegrex specific opcode and memory map
Replies: 11
Views: 4453

bitrev: reverse the bits inside the word, so that bit 0 becomes 31, and bit 31 becomes bit 0, bit 1 becomes 30 and 30 becomes 1, and so on 7000003D: mfdr 7080003D: mtdr They are in the toolchain (homebrew) I don't know what they are, again move from/to registers but I don't know which ones. These ar...
by korskarn
Wed Jan 11, 2006 2:50 pm
Forum: PSP Development
Topic: Little help here - allegrex specific opcode and memory map
Replies: 11
Views: 4453

Good luck with these two instructions... looks like very little information is available about them, and I wonder where they got the "mfic" and "mtic" names from? These two instructions are not documented in Sony's official Allegrex user manual or instructions manual, and neither...
by korskarn
Sun Jan 01, 2006 1:06 am
Forum: PSP Development
Topic: Link error when using C++ exceptions (try-catch)
Replies: 2
Views: 1672

Thanks, that was the problem, libstdc++ missing in the makefile! (the sample I used as a starting point was originally in C, not C++)
by korskarn
Sun Jan 01, 2006 12:20 am
Forum: PSP Development
Topic: Link error when using C++ exceptions (try-catch)
Replies: 2
Views: 1672

Link error when using C++ exceptions (try-catch)

I read somewhere on this forums that try-catch was supported, but when I try to compile with C++ exceptions enabled, I get the following link errors: $ make psp-g++ -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -fexceptions -fno...