Zeige Ergebnis 9.841 bis 9.870 von 10174
C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; WooooooooooooooooooW you have?!...
-
06-17-2009, 10:36 AM #9841QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
WooooooooooooooooooW you have?!
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-17-2009, 11:47 AM #9842QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-22-2009, 08:15 PM #9843
Achievements:
- Registriert seit
- Jun 2009
- Beiträge
- 2
- Points
- 1.689
- Level
- 23
- Downloads
- 0
- Uploads
- 0
Help on SDL and PSPLINK
Hello, I'm new to programming on PSP, but I have been programming on PC for around 3 years now. I have also used SDL in some of my programs on PC. It seems that SDL can also be used for programming. Can someone point me to a(n) article/tutorial/lesson on using SDL specifically for PSP? I have already tried searching, but I couldn't find anything specific to development on PSP. I couldn't search for SDL in this forum because it is excluded from the search query.
And another thing, I also need to know how to use Code::Blocks with PSPLink for debugging (I hope this is the correct place to ask). I followed a tutorial from a site (I can't post a link?). Search "reizencroft psplink" in Google. The first entry is the site. I tried it on the controller sample which came with the toolchain. Another thing that you should know, I never actually used a debugger. Three years of programming and I never actually debug... :o I think it's time for me to start debugging.
Debugger:
And this is the debugger log:Code:Building to ensure sources are up-to-date Build succeeded Selecting target: Release Adding source dir: /home/fishcake/Projects/Controller/ Adding source dir: /home/fishcake/Projects/Controller/ Adding file: bin/Release/Controller Starting debugger: done Registered new type: wxString Registered new type: STL String Registered new type: STL Vector Connecting to remote target Setting breakpoints Debugger name and version: GNU gdb 6.8-debian Connected The program is not being run. Debugger finished with status 0
Code:LD_LIBRARY_PATH=.: Command-line: /usr/bin/gdb -nx -fullname -quiet -args bin/Release/Controller Working dir : /home/fishcake/Projects/Controller/ bin/Release/Controller: No such file or directory. (gdb) > set prompt >>>>>>cb_gdb: Executing: xterm -T 'Program Console' -e sleep 91593 >>>>>>cb_gdb: > show version GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". >>>>>>cb_gdb: > set confirm off >>>>>>cb_gdb: > set width 0 >>>>>>cb_gdb: > set height 0 >>>>>>cb_gdb: > set breakpoint pending on >>>>>>cb_gdb: > set print asm-demangle on >>>>>>cb_gdb: > set unwindonsignal on >>>>>>cb_gdb: > set disassembly-flavor att >>>>>>cb_gdb: > file controller.elf >>>>>>cb_gdb: > directory /home/fishcake/Projects/Controller/ >>>>>>cb_gdb: > target remote tcp:127.0.0.1:10001 Reply contains invalid hex digit 59 >>>>>>cb_gdb: Executing: ps x -o tty,pid,command PS result: ? 26552 ps x -o tty,pid,command PS result: pts/0 26551 sleep 91593 TTY is[/dev/pts/0] GetConsoleTTY[/dev/pts/0]ConsolePid[26550] > tty /dev/pts/0 Queued:[tty /dev/pts/0] >>>>>>cb_gdb: > continue The program is not being run. >>>>>>cb_gdb: > quit
-
06-23-2009, 08:27 AM #9844QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
06-23-2009, 08:54 AM #9845Banned from QJ for LIFE
- Registriert seit
- Jul 2006
- Beiträge
- 1.557
- Points
- 10.957
- Level
- 69
- Downloads
- 0
- Uploads
- 0
He was spamming.
-
06-23-2009, 12:43 PM #9846words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
lol @ Davee's post.
signature worthy ;)
...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
06-28-2009, 10:40 AM #9847
Achievements:
- Registriert seit
- Dec 2008
- Beiträge
- 5
- Points
- 2.084
- Level
- 27
- Downloads
- 0
- Uploads
- 0
Hi all, I am analyzing davees spoofer source code and trying to understand it :)
I am wondering where did he got those numbers:
0x15EE0 (offset of sysconf_ver I guess)
0x15C10 (offset of sysconf_mac I guess)
0x3C020000
0x34420000
0x3C060000
0x24C60000
any ideas? I think he used some kind of ida or something...
well I realy dont understand those _sw functions so would be cool to have some help :)
-
06-29-2009, 03:26 PM #9848QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
It's MIPS assembler code. Take apart those opcodes and learn the purpose of sw ;)
There are various reference documents around the internet.
-
07-02-2009, 02:20 PM #9849QJ Gamer Green
- Registriert seit
- May 2008
- Beiträge
- 96
- Points
- 3.008
- Level
- 33
- Downloads
- 0
- Uploads
- 0
Hi guys,
I get this error when i try to compile a c file:
make: psp-config: Command not found
makefile : 12 : /lib/build.mak: no such file or directory
make: *** no rule to make target 'lib/build.mak' . Stop.
I know many people have this problem and many can't fix it,
even i fixed a few things and still get the same error.
First the build.mak file wasnt at the place where it should be and the next thing I can't fix is that i don't got psp-config binary file and how can i get that without installing everything over can someone send me that file maybe?
-
07-04-2009, 07:23 AM #9850
Achievements:
- Registriert seit
- Jun 2009
- Beiträge
- 2
- Points
- 1.689
- Level
- 23
- Downloads
- 0
- Uploads
- 0
-
07-04-2009, 03:59 PM #9851xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
-
07-04-2009, 04:46 PM #9852Developer and Tutor.
- Registriert seit
- Jul 2007
- Ort
- Widnes, England
- Beiträge
- 1.649
- Points
- 8.736
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
google = MinPSPW
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference.
My Website: http://www.modern-gamer.co.uk/
Currently working on:
(0) MediaGrab
(0) PGE Gears Of War - On hold (Very large project).
(0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).
-
07-04-2009, 05:06 PM #9853xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
-
07-05-2009, 01:50 AM #9854
Achievements:
- Registriert seit
- Dec 2008
- Beiträge
- 5
- Points
- 2.084
- Level
- 27
- Downloads
- 0
- Uploads
- 0
-
07-06-2009, 01:15 PM #9855QJ Gamer Gold

- Registriert seit
- Nov 2008
- Ort
- CAD
- Beiträge
- 693
- Points
- 13.372
- Level
- 75
- Downloads
- 19
- Uploads
- 4
hey, does anyone know how to create a timer ?
Geändert von mootjeuh (07-06-2009 um 03:19 PM Uhr)
That epic dude.
-
07-06-2009, 04:23 PM #9856
-
07-07-2009, 03:49 AM #9857QJ Gamer Green
- Registriert seit
- Feb 2007
- Ort
- California
- Beiträge
- 151
- Points
- 4.119
- Level
- 40
- Downloads
- 0
- Uploads
- 0
Hello.
I was wondering why the following files weren't compiling for me:
Spoiler for Main.c:
Spoiler for Makefile:
I'm using the latest (3.1) csp development studio, so I believe the objs and anything else needed are in this IDE and up to date but, for some reason, nothing compiles when I click the "Make" button to compile. Thanks!YA boye!
-
07-07-2009, 03:59 AM #9858QJ Gamer Gold

- Registriert seit
- Nov 2008
- Ort
- CAD
- Beiträge
- 693
- Points
- 13.372
- Level
- 75
- Downloads
- 19
- Uploads
- 4
why don't you just use oslib instead of all those objects ? try another compiler if does nothing at all
That epic dude.
-
07-07-2009, 04:19 AM #9859Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Hi Guys,
This is a function that can rotate a 256 element array (element wise) :
Problem is it rotates in the wrong direction.
int ii, jj;
for (ii = 1; ii <=1; ii++) {
for (jj = 256-1; jj > 0; jj--) {
array[jj-1] = array[jj-1] + array[jj];
array[jj] = array[jj-1] - array[jj];
array[jj-1] = array[jj-1] - array[jj];
}}
Anyone want to have a crack at the other direction?
No matter what I try I break it.
I realise I can just replace the 1 for 255 and use this for the same effect
as the other direction, but that takes too much time for the application.
Cheers, Art.
-
07-07-2009, 05:33 AM #9860QJ Gamer Green
- Registriert seit
- Feb 2007
- Ort
- California
- Beiträge
- 151
- Points
- 4.119
- Level
- 40
- Downloads
- 0
- Uploads
- 0
-
07-07-2009, 05:41 AM #9861
thats off the top of my head for a brute force way and untested.Code://rotate one way int temp; temp = x[0]; memmove((uint8_t*)&x, ((uint8_t*)&x) + sizeof(int), 255 * sizeof(int)); x[255] = temp; // rotate the other way temp = x[255]; memmove(((uint8_t*)&x)+sizeof(int), (uint8_t*)&x, 255 * sizeof(int)); x[0] = temp;
memmove can handle overlapping blocks so but depends how well its programmed to handle overlapping blocks, it may use a bad algo.. I dont know if mips has a direction movement flag like x86 (which makes it super easy/cheap to do)...
edit: my assumption here was you were using an array of ints, just change correct sizeofs and temp variable... etc.Geändert von _df_ (07-07-2009 um 05:45 AM Uhr) Grund: code tags
-- Code Monkey : Sarien, Fishguts, Cracks and Crevices --
"Did IQ's just drop sharply while I was away?" (Ripley)
-
07-07-2009, 09:54 AM #9862Developer
- Registriert seit
- Jul 2008
- Ort
- Grand Rapids! MI
- Beiträge
- 125
- Points
- 8.092
- Level
- 60
- Downloads
- 5
- Uploads
- 2
-
07-07-2009, 11:22 AM #9863QJ Gamer Gold

- Registriert seit
- Nov 2008
- Ort
- CAD
- Beiträge
- 693
- Points
- 13.372
- Level
- 75
- Downloads
- 19
- Uploads
- 4
-
07-07-2009, 02:07 PM #9864Developer
- Registriert seit
- Jul 2008
- Ort
- Grand Rapids! MI
- Beiträge
- 125
- Points
- 8.092
- Level
- 60
- Downloads
- 5
- Uploads
- 2
Im not asking where to get it i had it but it wasnt very good and just got ubuntu installed on my laptop (instead of installing cygwin on it) but im saying some places may not have the whole CSP included like some stuff was removed. and the CSP DL was removed from dl.qj.net
thats the same as the 3.1 patch.
Zitat von http://dl.qj.net/CSP-Development-Studio-v3.0-PSP-Development/pg/12/fid/14443/catid/204
But the reason that CSP dosnt compile something is because there is an error that needs fixing
or youll need a new CSP witch i can give you if you would likeGeändert von lilmnm (07-07-2009 um 02:21 PM Uhr)
-
07-07-2009, 02:25 PM #9865xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Install MinPSPw, search google for my installation tutorial
-
07-07-2009, 03:36 PM #9866Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
-
07-15-2009, 05:34 AM #9867
-- Code Monkey : Sarien, Fishguts, Cracks and Crevices --
"Did IQ's just drop sharply while I was away?" (Ripley)
-
07-15-2009, 07:14 AM #9868QJ Gamer Gold

- Registriert seit
- Nov 2008
- Ort
- CAD
- Beiträge
- 693
- Points
- 13.372
- Level
- 75
- Downloads
- 19
- Uploads
- 4
new problem: I'm trying to load a prx but it just doesn't wanna. when I try loading it with iR Shell, it works jus fine. but when I use the functions that are in the SDK samples; either my PSP crashes or the screen turns black but the exit callbacks still work.
these are the SDK functions that I'm referring to:
^Here the screen turns blackSpoiler for SceUID load_prx:
^here my PSP crashesSpoiler for LoadStartModule:
anyone got any ideas?That epic dude.
-
07-15-2009, 11:22 AM #9869Developer
- Registriert seit
- Jul 2008
- Ort
- Grand Rapids! MI
- Beiträge
- 125
- Points
- 8.092
- Level
- 60
- Downloads
- 5
- Uploads
- 2
What i use for my DayPR to load outside prx's (in this case the USB) is LoadStartModule
example USB Activation (to start the whole process)
Spoiler for USB Example:
Then this to load the out side PRX's (the usb prx's)
Spoiler for Way to call the PRX's:
in your code i dont see it trying to define what prx you want it to load try defineing the exact prx you want it to load and you should get any errors or crashes
-
07-15-2009, 12:04 PM #9870QJ Gamer Gold

- Registriert seit
- Nov 2008
- Ort
- CAD
- Beiträge
- 693
- Points
- 13.372
- Level
- 75
- Downloads
- 19
- Uploads
- 4
i don't get it. all i want to do is load a prx. i don't even know HOW to define what prx i want to load.
That epic dude.


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum