1337codez™
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  PortalPortal  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Source Code

Go down 
4 posters
AuthorMessage
DarK_DemoN
»[\...VIP.../]«™ AdminiStratoR
DarK_DemoN


Posts : 584
Join date : 2010-07-20
Age : 31
Location : Hacking Kingdom, USA

Source Code Empty
PostSubject: Source Code   Source Code EmptyMon Aug 02, 2010 6:08 pm

This is the source code to a program i made when i was bored as hell and had nothing to do.
I am posting to show you what makes up a program and how the psp knows what to do.


//DarkNess v.1
/*This is a random shitty program made by "DarK_DemoN", enjoy or not idc*/
#include <pspKernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("DarkNess v1",0,1,1);
#define printf pspDebugScreenPrintf
/*Exit Callback*/
int Exit_ Callback(int arg1, int arg2,void *commonint Exit_ Callback(int arg1, int arg2,void *commonint Exit_ Callback(int arg1, int arg2,void *commonint Exit_ Callback(int arg1, int arg2,void *common){
SceKernelExitGame();
Return 0;
}
/*Sets up the callback thread and returns its thread ID*/
int SetupCallback(void){
int thid = 0;
thid = sceKernelCreateThread("update_thread",CallbackThread,0x11,0xFA00);
}
return thid;
}
int main () {
pspDebugScreenlint ();
SetupCallbacks ();
printf("DarkNess v1);
sceKernelSleepThread ();
return 0;
}




Next is the "MakeFile" for the above code

TARGET =darkness
OBJS =main.o

CFLAGS = -02 - go - wall
CXXFLAGS =$(CFLAGS) -fno-exceptions -fno-rtt;
ASFLAGS =$(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = DarkNess v1

PSPSDK=$(shell psp-config --pspsdk-path)
include $(pspsdk)/lib/build.mak



Well thats the source to a program i made, if you read closely you can makeout what parts of the code actually do like "sceKernelSleepThread" tells the psp to go into sleep mode.

REP or dont, honestly idc


Last edited by DarK_DemoN on Tue Aug 10, 2010 2:32 am; edited 2 times in total
Back to top Go down
http://odstofficalsite.webs.com
DarK_DemoN
»[\...VIP.../]«™ AdminiStratoR
DarK_DemoN


Posts : 584
Join date : 2010-07-20
Age : 31
Location : Hacking Kingdom, USA

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyMon Aug 02, 2010 7:14 pm

I know this is a double-post but its to explain what the symbols in the code mean and why they are there, so bear with me.

The // at the begining of the code tells the compiler and psp that everything after it is text not code so go to the next line. Basically its a command telling the compiler and psp to ignore everything after it and go to the next line.

The /* tells the compiler that everything after it is an information line meant only for humans and to ignore it and move on. But you must have a */ after your information, this tells the compiler that this is the end of the text and the actual codeing begins next.

The ; is there to tell the compiler that this is the end of a set or line of coding.

A } tells the compiler that this is the end of a set command and a new command will begin next. ("command" aka "function")

Now when you see something that has sceKernel in it that means that the psp firmware will be involved in that specific command or function. It could also mean that the psp needs to perform a check of the current firmware installed to make sure it is compatible.


I hope you understand more of how a program works and what actually makes-up a program.

REP is always appreciated.

Please do not steal my work or guides as i have worked very hard on them so you can understand a little bit about source coding.

Thank You,
DarK_DemoN

Back to top Go down
http://odstofficalsite.webs.com
1337 Founder
Über 1337 AdMiN!!
Über 1337 AdMiN!!
1337 Founder


Posts : 508
Join date : 2010-07-19
Location : In your face!

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 03, 2010 1:42 am

Very nice Demon REP + 2.
In this case double posting is acceptable for you in the fact that you showed and told, get what i mean?

Now my questions are what progam do you use to make this? MSdos? Or something else if something else tell us. Also what program do you use to make it a prx id really like to know
Back to top Go down
http://demonicpsp.darkbb.com
DarK_DemoN
»[\...VIP.../]«™ AdminiStratoR
DarK_DemoN


Posts : 584
Join date : 2010-07-20
Age : 31
Location : Hacking Kingdom, USA

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 10, 2010 2:24 am

Ok this is the program i use: CodeBlocks

You can get it HERE

Select the first download link. (yes i know its in Germany)

Then watch this:

[You must be registered and logged in to see this link.]

This is a very good C++ Tutorial series (yes it is a series). If you have any problems just emeil the uploader (i know him and he is very nice 8P) and he WILL get back to you.



Its good to start out programing computers then move to the PSP as the PSP is more complicated.

I will post the shell tools for PSP programming when you are comftable with PC progrmaing.
Back to top Go down
http://odstofficalsite.webs.com
1337 Founder
Über 1337 AdMiN!!
Über 1337 AdMiN!!
1337 Founder


Posts : 508
Join date : 2010-07-19
Location : In your face!

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 10, 2010 12:56 pm

alrighty
Back to top Go down
http://demonicpsp.darkbb.com
BrooklynLilg#1
Moderator/Coder
BrooklynLilg#1


Posts : 254
Join date : 2010-07-22
Age : 27
Location : Brooklyn New York

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 10, 2010 4:01 pm

hey demon, can u edit my mkultra and darkfrost and put it so that cheat hz is always set to 15 and screenshots r always off?
Back to top Go down
http://www.onehitgamer.com
DarK_DemoN
»[\...VIP.../]«™ AdminiStratoR
DarK_DemoN


Posts : 584
Join date : 2010-07-20
Age : 31
Location : Hacking Kingdom, USA

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 10, 2010 4:22 pm

not without the src code i cant. and usually people who make programs dont release the src code until the program is going dead.

ask demon450 (creater of darkfrost) but i doubt he'll give it out
Back to top Go down
http://odstofficalsite.webs.com
BrooklynLilg#1
Moderator/Coder
BrooklynLilg#1


Posts : 254
Join date : 2010-07-22
Age : 27
Location : Brooklyn New York

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Aug 10, 2010 7:00 pm

fujge balls :/
Back to top Go down
http://www.onehitgamer.com
DarK_DemoN
»[\...VIP.../]«™ AdminiStratoR
DarK_DemoN


Posts : 584
Join date : 2010-07-20
Age : 31
Location : Hacking Kingdom, USA

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyWed Aug 11, 2010 1:17 am

lol. ANNOUNCMENT: I asked Tyler (the C++ expert/youtube video uploader) to join the site and help you guys out with programming and he said yes! i have made a C++ topic for to post the basics in (C++ Overview, Basic C++ Programming, C++ Programing Help)

i am moving the 'What Makes Up A Program topic' to that category as well except it will be split into a 'C++ Programing Tools' section and a 'PSP C++ Programing' section (he does not program pspz so i will be heading that)


NOTE: Due to a recent Bit upgrade to to my computer (got a new one) i no longer use Code::Blocks because it does not support 64Bit computers, i now am (trying to) using 'Microsoft C++ Visual Suite 2008' (or whatever its called) if you have a 64Bit computer this looks like your only choice in compilers
Back to top Go down
http://odstofficalsite.webs.com
1337 Founder
Über 1337 AdMiN!!
Über 1337 AdMiN!!
1337 Founder


Posts : 508
Join date : 2010-07-19
Location : In your face!

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyTue Sep 07, 2010 1:12 pm

alrighty FUCK my hand hurts!!!
Back to top Go down
http://demonicpsp.darkbb.com
Ɗǝɱȱи_ҒįƦƩ
TotaL NooB!
Ɗǝɱȱи_ҒįƦƩ


Posts : 6
Join date : 2012-07-07
Location : At ur girlfriends house

Source Code Empty
PostSubject: Re: Source Code   Source Code EmptyMon Jul 09, 2012 1:32 am

i know this is and old post but can yu explain again how to make a program please thanks
Back to top Go down
Sponsored content





Source Code Empty
PostSubject: Re: Source Code   Source Code Empty

Back to top Go down
 
Source Code
Back to top 
Page 1 of 1
 Similar topics
-
» How to Un-DMA a code.
» My bar code
» How to port a code
» How A Code Works
» MOHH2 CODE :DDD

Permissions in this forum:You cannot reply to topics in this forum
1337codez™ :: HELP!!!! :: What makes up a program?-
Jump to: