Search found 127 matches

by phobox
Sat Jan 23, 2010 11:02 pm
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

ook thankyou very much!
by phobox
Thu Jan 21, 2010 12:44 am
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

thanks for that but i cannot make transparency work... when i insert sceGuAlphaFunc(GU_GREATER, 0, 0xFF); sceGuEnable(GU_ALPHA_TEST); in the initialization function, the only thing that gets drawed is the intrafont strings, everything else (lines and poligons) are inv...
by phobox
Wed Jan 20, 2010 11:15 pm
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

thankyou but i have some problems with alpha. by adding those two lines in the init function, anything except intrafont strings gets drawed!, i cannot seen anything..

thanks for functions to restore gu settings after intrafont
by phobox
Wed Jan 20, 2010 4:51 am
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

any help? how can i make the transparency work?
by phobox
Mon Jan 18, 2010 5:35 am
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

it seems that i need to enable something to make the transparency work!
i created a rectangle with alpha to 0x80 but is looks like as if alpha was 0xFF...
should i change the parameters for sceGumDrawArray?
by phobox
Sun Jan 17, 2010 7:51 pm
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

but it doesn't... the line is not visible

can you please tell me what sceGuBlendFunc does? i want to learn... thankyou thankyou
by phobox
Sun Jan 17, 2010 7:29 pm
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

sorrounding the block with
sceGuDisable(GU_BLEND); and
sceGuEnable(GU_BLEND);
is working but i would like to set the alpha to 1 instead of doing this.


to set the alpha to 1 is this ok? sceGuColor(0xFF000000); .. it is not working..

thanks....
by phobox
Sun Jan 17, 2010 3:08 am
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

oh thanks, except for typedef struct { float x, y, z; } vType; has this to be called in the main loop? EDIT: i cannot make it work.. the problem is with sceGuEnable(GU_BLEND); sceGuBlendFunc(GU_ADD, GU_SRC_ALPHA, GU_ONE_MINUS_SRC_ALPHA, 0, 0); that is called in the init gu function. if i comment the...
by phobox
Sat Jan 16, 2010 8:51 pm
Forum: PSP Development
Topic: simple gu question
Replies: 14
Views: 9913

simple gu question

this is the first time i'm trying to use psp internal gu library. the question is: how can i draw a line from let's say (10,20) to (400, 220), specifing the cordinates in pixels and working in 2D (for now)? i think that i should use sceGuDrawArray with as first argument GU_LINES, but i don't know mu...
by phobox
Fri Jan 01, 2010 11:07 pm
Forum: PSP Development
Topic: PSP decompiler
Replies: 57
Views: 46850

check the asm.. if pspdecompiler gave you that result the asm shouldn't be big.
Pspdecompiler is not working properly with return values...
by phobox
Tue Dec 22, 2009 2:17 am
Forum: PSP Development
Topic: Execute a function with user privilege when kernel mode
Replies: 15
Views: 14485

from pspctrl.h:

Code: Select all

/**
 * Enumeration for the digital controller buttons.
 *
 * @note PSP_CTRL_HOME, PSP_CTRL_NOTE, PSP_CTRL_SCREEN, PSP_CTRL_VOLUP, PSP_CTRL_VOLDOWN, PSP_CTRL_DISC, PSP_CTRL_WLAN_UP, PSP_CTRL_REMOTE, PSP_CTRL_MS can only be read in kernel mode
 */
@ne0h: try changing k1...
by phobox
Fri Dec 18, 2009 3:39 am
Forum: PSP Development
Topic: ctc0 and cfc0
Replies: 9
Views: 6974

thanks for the info, but ctc0 $v0 $4 means copy data FROM $v0 to $4 right?, but this is the first instruction executed by the psp (the first instruction of the preipl).. how is it possible to copy v0 to $4? what is it stored in v0? is the $4 the register that in standard MIPS R4000 processor is used...
by phobox
Thu Dec 17, 2009 1:59 am
Forum: PSP Development
Topic: ctc0 and cfc0
Replies: 9
Views: 6974

Well does it mean that it copies value from general purpose register $v0 to CP0 control register $4?

but.. since this is the very first instruction executed... what value is contained in $v0??


and then.. what is the meaning of control register $4? where can i find a list of all functions?
by phobox
Wed Dec 16, 2009 6:34 am
Forum: PSP Development
Topic: ctc0 and cfc0
Replies: 9
Views: 6974

ctc0 and cfc0

what do those opcodes do?

the very first instruction executed by the psp when turned on is

0xBFC00000: 0x40C22000 '. .@' - ctc0 $v0, $4

what does it mean?
any help is appreciated
by phobox
Wed Dec 16, 2009 6:31 am
Forum: PSP Development
Topic: Batterie Eeprom
Replies: 4
Views: 3443

serial 0x00000000 means autoboot (the psp is turned on when you insert your battery)
seriale 0xFFFFFFFF means service mode.

Any other serial makes the battery behave normally
by phobox
Mon Nov 23, 2009 8:15 pm
Forum: PSP Development
Topic: open files in UPDATE mode
Replies: 0
Views: 1540

open files in UPDATE mode

hello!, i wanted to dump the arguments passed to module_start of the updater. so i created a fake updater (UPDATE folder, 0x0800) and i started it, it worked because i was able to see the debug messages on the screen but if i tried to open the file ms0:/param.bin in this way fd = sceIoOpen("ms0...
by phobox
Thu Sep 17, 2009 1:03 am
Forum: PSP Development
Topic: Adding features to firmware applications ?
Replies: 7
Views: 3764

If you need to disable the MemoryStick led you can hook sceGpioPortSet function.
in the custom function OR the argument with 0x40, check it and in that case simply return. (0x80 is the value for the wlan led if you want..)

Power leds from what i know are not controlled by gpio.
by phobox
Tue Sep 08, 2009 7:44 am
Forum: PSP Development
Topic: dynamic libraries
Replies: 11
Views: 5142

For exporting variables, use pointers for user->user or kernel->kernel exports. Can you please tell me how to import variables? what do you mean by saying "use pointers"? do you mean to use a pointer and set to this pointer the address of the exported variable from the other module? but h...
by phobox
Sun Jul 12, 2009 7:54 am
Forum: PSP Development
Topic: vshBridge questions
Replies: 1
Views: 1471

vshBridge questions

vshBridge is a wrapper for functions.. most of the exported functions (maybe all of them :)) do 3 particular things 1) check if the value returned by sceKernelGetUserLevel is < 4. 2) backup k1 and set k1 = k1 >> 16 3) call the original function and restore the k1 I have two questions: what does it m...
by phobox
Tue Jul 07, 2009 1:23 am
Forum: PSP Development
Topic: gpio question
Replies: 9
Views: 4529

ok in this one are wiriiten strange things... eg sceGpioPortSet(0x00000003); is _sw(0xBE240008, _lw(0xBE240008) | 0x00000003); and another one sceGpioPortClear(0x00000003); is _sw(0xBE240008, _lw(0xBE240008) | 0x00000003); now there are two things to consider: i did't understand that that code is ri...
by phobox
Mon Jul 06, 2009 10:54 pm
Forum: PSP Development
Topic: gpio question
Replies: 9
Views: 4529

thank you very much JF,
do you mean this?
http://forums.ps2dev.org/viewtopic.php?t=7338
by phobox
Sun Jul 05, 2009 12:34 am
Forum: PSP Development
Topic: gpio question
Replies: 9
Views: 4529

ok, i understand thank you!. but from now on, things can be discovered only by testing, is no more possible to "reverse" i mean, to discover the 0x80 an 0x40 values i can only look (for example) at led.prx, but not "inside" gpio.. am i right? and since i'm writing, where can i ge...
by phobox
Sat Jul 04, 2009 11:09 pm
Forum: PSP Development
Topic: gpio question
Replies: 9
Views: 4529

gpio question

looking at lowio.prx I discovered how sceGpioPortRead, sceGpioPortSet and sceGpioPortClear are defined: int sceGpioPortRead &#40;&#41; &#123; return = *&#40;&#40;int *&#41; 0xBE240004&#41;; &#125; void sceGpioPortSet &#40;int arg1&#41; &#123; *&#40;&am...
by phobox
Tue Jun 30, 2009 6:12 am
Forum: PSP Development
Topic: Some troubles with sceLed lib and nidresolver
Replies: 23
Views: 16207

cory you are definetly right! didn't tought about that...nidresolver is much much better
by phobox
Tue Jun 30, 2009 4:10 am
Forum: PSP Development
Topic: sysevents list
Replies: 0
Views: 1289

sysevents list

is there somewhere a documented list of psp sysevents?

all what i found is http://forums.ps2dev.org/viewtopic.php?t=10570

but i don't understand very well from that list what each ev_id means...
by phobox
Tue Jun 30, 2009 12:59 am
Forum: PSP Development
Topic: Some troubles with sceLed lib and nidresolver
Replies: 23
Views: 16207

but why not updatng the pspsdk with the feature to resolve the nid at compile time? specifying the fw version in the makefile...
by phobox
Wed Jun 24, 2009 10:20 pm
Forum: PSP Development
Topic: reboot psp and load a custom ipl
Replies: 8
Views: 6295

oh, i did't know i don't have to remove and reinsert the battery to make te msipl to be loaded. now, my question is: is it possible to create an application to start a firmware installed on the memory stick (link the 1.50 from timemachine or the DDC ones)? i thought that to do this i had to "re...
by phobox
Wed Jun 24, 2009 7:27 pm
Forum: PSP Development
Topic: reboot psp and load a custom ipl
Replies: 8
Views: 6295

jojojoris how did you managed to do that? i mean not to reinsert the battery?
by phobox
Wed Jun 24, 2009 1:17 am
Forum: PSP Development
Topic: reboot psp and load a custom ipl
Replies: 8
Views: 6295

reboot psp and load a custom ipl

is it possible? let me explain you.. I want to be able to lauch the 1.50 fw installed on ms (with time machine) by lauching an user application from the "game" menu, because afaik i need to manually remove and reinsert the battery... if not 1.50 also ddc with "test m33" feature a...
by phobox
Tue Jun 16, 2009 4:59 am
Forum: PSP Development
Topic: pspLed library
Replies: 2
Views: 3143

pspLed library

I decided to reverse the simple led.prx module. Since the current sdk doesn't have prototypes for that library, i prepared the header file. I would have made a patch but i don't know how to insert a new library... i think that the whole makefile has to be changes, so... i don't know. here is the hea...