Search found 410 matches

by crazyc
Sat Feb 06, 2010 12:31 pm
Forum: PSP Development
Topic: Vorbis streaming on ME processor
Replies: 3
Views: 3360

Re: Vorbis streaming on ME processor

I'm facin some problems because of the malloc / free functions that ogg vorbis uses. I had some crashes at malloc_lock function I guess because malloc wasn't written to be shared across the two processors. The libc malloc uses OS services and so is only available on the SC. You'll have to write you...
by crazyc
Fri Feb 05, 2010 4:53 am
Forum: PSP Development
Topic: Does the PSP have an OS running in background?
Replies: 14
Views: 24796

methos3 wrote:So... Do the PS2 have a kernel always running too? Isn't the game an OS on the PS2 and some other consoles?
The PS2 (and the wii interestingly) has no OS on the main CPU but has an modular embedded OS with a bundle of device drivers running on a secondary CPU. The IOP also doubles as the PS1 CPU.
by crazyc
Tue Feb 02, 2010 2:31 am
Forum: PSP Development
Topic: audio mixing??
Replies: 7
Views: 6661

You have to manage with 8 channels. The PSP (at least 1000 and 2000) has only 1 hardware stereo channel. The mixing of the 8 "channels" occurs in a kernel thread. If you mix yourself use sceAudioSRCOutputBlocking for a nice performance boost due to the skipping of the software mixer and g...
by crazyc
Sun Jan 31, 2010 11:41 am
Forum: PSP Development
Topic: GCC removes ASM code after return
Replies: 11
Views: 14325

Re: GCC removes ASM code after return

How about this; int i = 1; __asm__ volatile ( ".set push\n" ".set noreorder\n" "vcmp.s GT, S000, S200\n" "bvtl 0, 1\n" "addiu %0, $0, 0\n" ".set pop\n" :"=r"(i)); if(!i) retu...
by crazyc
Sun Jan 31, 2010 1:34 am
Forum: PSP Development
Topic: GCC removes ASM code after return
Replies: 11
Views: 14325

Re: GCC removes ASM code after return

GCC complains about undefined label. I thought it was it cannot access the label, but the fact is that GCC removes everything after a return sentence. Speed is critical here, so I don't want to use a variable and a branch if possible. Just use a variable. Higher compiler optimization levels will pr...
by crazyc
Wed Jan 13, 2010 5:03 am
Forum: PSP Development
Topic: Libertas/WLAN hacking as done in DA's MacSpoofer
Replies: 66
Views: 44536

bbtgp32465 wrote:
i was wondering what the purpose of these 2 pokes where for?

Code: Select all

pokew 0x88196474 0x46c06841
pokew 0x8818df48 0x46c046c0
thanks
They patch a command in the libertas firmware to allow reading of the full ARM address space.
by crazyc
Tue Dec 29, 2009 7:29 am
Forum: PSP Development
Topic: Strange Entry Point in Datel's Action Replay
Replies: 7
Views: 5334

Re: Strange Entry Point in Datel's Action Replay

ab5000 wrote:I think they used an exploit. Look at the Entry Point - it's 0x000000AC!!!
What do you think about it?
That's probably an offset from the module base. Remember, it's relocatable.
by crazyc
Wed Oct 21, 2009 1:17 am
Forum: PSP Development
Topic: Error using VFPU matrix 3?
Replies: 19
Views: 21864

Criptych wrote:I'll give it a shot. Is this register corruption the only reason not to use ulv.q/usv.q?
I believe so.
Criptych wrote: From what I read in the diggins they aren't significantly slower than the aligned version; how do they compare to lv.s/sv.s * 4?
I don't know. I haven't done much with the VFPU.
by crazyc
Tue Oct 20, 2009 1:15 pm
Forum: PSP Development
Topic: Error using VFPU matrix 3?
Replies: 19
Views: 21864

Way over my head, I've only ever used assembly for minimal VFPU access, and I'm still learning most of the opcodes. :P How do I add a "clobber constraint"? Is it an extra argument/modifier to the instruction? A clobber constraint is an extra parameter added to the inline asm block that te...
by crazyc
Tue Oct 20, 2009 9:38 am
Forum: PSP Development
Topic: Error using VFPU matrix 3?
Replies: 19
Views: 21864

There was an issue with ulv.q corrupting an FPU register, but I think it was fixed after the 1000. You could probably account for it by adding a clobber constraint. (something like $fp0 with C000, $fp1 with C100 I think)
by crazyc
Tue Oct 20, 2009 6:38 am
Forum: PSP Development
Topic: Error using VFPU matrix 3?
Replies: 19
Views: 21864

Did you test this on a psp-1000 by chance?
by crazyc
Sat Oct 17, 2009 10:10 am
Forum: PSP Development
Topic: Weird exception
Replies: 2
Views: 2298

Re: Weird exception

Look at the instruction in the delay slot.
by crazyc
Sat Sep 05, 2009 10:14 pm
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

tanweeho wrote:After this exercise, I have more or less the ported source code. I'd love to share it too. But before that, I would like to seek CrazyC's permission or opinion before I do so.
(CrazyC, I have PMed you.)
Go ahead.
by crazyc
Wed Sep 02, 2009 12:00 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

Yes, there is. The "-Dmain" flag is all over in the makefile. The simplest way to fix this is to remove that parameter from the Makefile in the gui directory. Then the undefined reference error should go away. Is this normal? I interpret the error above as what you meant by "failed l...
by crazyc
Mon Aug 31, 2009 9:48 pm
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

When you compile it does the gcc command line contain -Dmain=SDL_main?
by crazyc
Mon Aug 31, 2009 2:34 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

main is in src/gui/sdlmain.cpp. Make sure it's getting compiled.
by crazyc
Wed Aug 26, 2009 10:27 am
Forum: PSP Development
Topic: Retrieve bits by USB
Replies: 7
Views: 3793

I suspect that english is not your first language as your question doesn't make much sense. Try being more specific about what you want to do.
by crazyc
Tue Aug 25, 2009 2:32 am
Forum: PSP Development
Topic: Compiling on PSP
Replies: 9
Views: 4000

Re: Compiling on PSP

Turbo C in DOSBox. That's about it.
by crazyc
Fri Aug 14, 2009 12:59 am
Forum: PSP Development
Topic: How to hook sceGuFinish???
Replies: 3
Views: 2956

ab5000 wrote:yes, you can hook a user mode function, but not in that way. search "easy hook example user kernel" in this forum.
If he did want to override sceGuFinish, he could just change the order by linking his function before libgu, but that wouldn't enable him to do what he said he wanted.
by crazyc
Thu Aug 13, 2009 11:09 am
Forum: PSP Development
Topic: How to hook sceGuFinish???
Replies: 3
Views: 2956

You can't because sceGuFinish is not a kernel function. It only places a finish command in the display list. Try hooking sceGeListUpdateStallAddr instead.
by crazyc
Tue Apr 14, 2009 12:07 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

EDIT2: The cause of this crash is definately FAT12 filesystems. All floppy disks, and harddisk images that are 16MB or less are always FAT12... creating a 17MB hardfile, which is the lowest possible for FAT16, fixed the crash. But now I get disk access errors (as if it's write protected) with the m...
by crazyc
Mon Apr 13, 2009 12:50 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

DanielC wrote:Any new progress CrazyC?
No. My source tree is a mess and before I can do any more, I have to clean it up.
DanielC wrote:SYSOPT INPUTSWITCH
This already exists, "INPUTMAP analog mouse" and "INPUTMAP analog joystick".
by crazyc
Sat Apr 11, 2009 2:09 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

It is on standard DOSBox. Originally CrazyC implemented it as mincycles and maxcycles, but from memory i think he changed cyclesup/cyclesdown to do the same thing as min/max cycles - because the DOSBox cycles changing hotkeys don't exist on the PSP port I suppose... i'm just guessing there, I only ...
by crazyc
Tue Mar 31, 2009 11:57 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

Re: DosBox Variables

This is also my conclusion. I still put cycles=max before all the psp-specific options crazyc implemented anyway, doesn't do any harm for me =P cycles=sync attempts to adjust cycles so the emulated vsync and the real vsync occur simultaneously. maxcycles and mincycles when cycles=sync set the upper...
by crazyc
Fri Mar 13, 2009 4:49 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

The problem is probably that configure is calling the mingw sdl-config which is bringing in the mingw headers. You probably haven't installed sdl for psp (I removed all dependencies on sdl but configure still wants it). I actually did most of my development on a windows x64 machine but with msys not...
by crazyc
Thu Mar 12, 2009 1:27 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

psp-g++: fsingle-precision-constant: No such file or directory fsingle-precision-constant is a parameter. Put a dash in front of it when you run configure. cc1plus: error: unrecognized command line option "-mno-cygwin" -mno-cygwin shouldn't be there. Since ...
by crazyc
Wed Mar 11, 2009 7:16 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

./configure "CXXFLAGS='-I/usr/local/pspdev/psp/sdk/include -Ic:/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registers -finline -finline-limit=200 -msingle-float -ffast-math fsingle-precision-constant -G0 -I/c/pspdev/psp/include/SDL' LDFLAGS='-lc -lpspuser -lpspkernel -L/us...
by crazyc
Tue Mar 03, 2009 1:54 pm
Forum: PSP Development
Topic: Basilisk II PSP Port (Mac Emulator)
Replies: 705
Views: 586644

Dariusc123456 wrote:Well thats true. Ill do a search. Maybe ill find one written in C.
No. Raw sockets have to be implemented in the IP stack within the PSP kernel. Either support is there and we don't know how to use it or it's not and a kernel patch or hook will be required. A java or C library will not help.
by crazyc
Sat Feb 14, 2009 1:16 pm
Forum: PSP Development
Topic: Media Engine and Mp3 decoding
Replies: 23
Views: 26280

So the ME actually, controls the VME... does that mean it might be possible to use the VME? Has anyone been able to access that piece of hardware for use? I know Sony can do as they wish with the VME, but has anyone been able to do anything with it in terms of homebrew? AFAIK, no one knows what the...
by crazyc
Mon Dec 29, 2008 8:43 am
Forum: PSP Development
Topic: dosbox, now with 100% less drama
Replies: 484
Views: 665771

Murdock wrote:BUT: REAL Networking is not what we'd need with Dosbox, is it? The only thing we'd need is some "virtual network"
Exactly, if people are looking for Internet access they're looking in the wrong place. Dosbox doesn't support it and even if it did there aren't any worthwhile apps.