Go Back  
Reply
 
Thread Tools
Old 12-22-2011   #21
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,855
Likes: 1,032
Liked 826 Times in 484 Posts
Mentioned: 162 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Originally Posted by fqtbrqt View Post
I can only save you all by saving the cheerleader not by learning to code :P (heroes tv series reference for those who don't get it)
Back to topic: am I right when I assume that the PS3 uses PowerPC64 assembly language? Just thought of that since it's an 64bit machine or am I terribly wrong on that one?

Edit: regarding the SELFs thing, maybe the S should stand for sh*t since the S in Sony stands for sh*t also I'll go and wash my mouth for that :P
Yes I believe it is in fact PPC64. Here is a test that a developer gave me lol, for educational purposes . The goal is to convert it to C language.
Please if you finish this test DON'T post it anywhere I am still learning myself and haven't finished the test yet .

Code:
cellFsWrite:
.set var_10, -0x10
.set arg_10,  0x10
cmpwi        cr7, %r6, 0
mflr        %r0
extsw        %r3, %r3
std        %r0, arg_10(%sp)
beq        cr7, loc_10BE0EF0
rldicl        %r4, %r4, 0,32
rldicl        %r6, %r6, 0,32
li        %r11, 0x323
sc
ld        %r0, arg_10(%sp)
extsw        %r3, %r3
mtlr        %r0
blr
.align 4
loc_10BE0EF0:
addi        %r6, %sp, var_10
rldicl        %r4, %r4, 0,32
rldicl        %r6, %r6, 0,32
li        %r11, 0x323
sc
ld        %r0, arg_10(%sp)
extsw        %r3, %r3
mtlr        %r0
blr
# End of function cellFsWrite
it has been 9 hours since I was given this test and I have not yet finished it, How do these devs do it .
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Old 12-22-2011   #22
Dolenc
Member
null
 
Join Date: Dec 2011
Posts: 43
Likes: 6
Liked 21 Times in 14 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Well... maybe they understand assembly language, that helps :D
Dolenc is offline   Reply With Quote
Old 12-22-2011   #23
fqtbrqt
Member
null
 
fqtbrqt's Avatar
 
Join Date: Dec 2011
Posts: 35
Likes: 7
Liked 7 Times in 4 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Originally Posted by TizzyT View Post
Yes I believe it is in fact PPC64. Here is a test that a developer gave me lol, for educational purposes . The goal is to convert it to C language.
Please if you finish this test DON'T post it anywhere I am still learning myself and haven't finished the test yet .

Code:
cellFsWrite:
.set var_10, -0x10
.set arg_10,  0x10
cmpwi        cr7, %r6, 0
mflr        %r0
extsw        %r3, %r3
std        %r0, arg_10(%sp)
beq        cr7, loc_10BE0EF0
rldicl        %r4, %r4, 0,32
rldicl        %r6, %r6, 0,32
li        %r11, 0x323
sc
ld        %r0, arg_10(%sp)
extsw        %r3, %r3
mtlr        %r0
blr
.align 4
loc_10BE0EF0:
addi        %r6, %sp, var_10
rldicl        %r4, %r4, 0,32
rldicl        %r6, %r6, 0,32
li        %r11, 0x323
sc
ld        %r0, arg_10(%sp)
extsw        %r3, %r3
mtlr        %r0
blr
# End of function cellFsWrite
it has been 9 hours since I was given this test and I have not yet finished it, How do these devs do it .
Ok... since I'm not able to understand C nor assembly this is simply too much :D
Will give it a try when I put my nose in assembly languages
fqtbrqt is offline   Reply With Quote
Old 12-22-2011   #24
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,855
Likes: 1,032
Liked 826 Times in 484 Posts
Mentioned: 162 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Originally Posted by fqtbrqt View Post
Ok... since I'm not able to understand C nor assembly this is simply too much :D
Will give it a try when I put my nose in assembly languages
I too know neither of the two languages but I am learning as I go and so far I have to be honest its a slow process lol.

The way I plan on doing it is commenting what each line does, then after everything is commented I begin the conversion to C as I will now know what I want the C program to do.

Easy in thought but hard in practice..for me at least lol.
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Old 12-23-2011   #25
Dolenc
Member
null
 
Join Date: Dec 2011
Posts: 43
Likes: 6
Liked 21 Times in 14 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
If you realy want to learn this stuff and you know that you will still feel the same after 6months, then you should start elsewhere. Even if you solve this "test" you wont get much out of it since you still wont know what you are doing :D

Start with google . Write "Introduction to Computer Engineering".
This one looks OK, start with part1 .

Introduction to Computer Engineering - Part 13 Basic Logic Gates - YouTube

Even if you dont understand everything atleast you get to see some basic stuff, so you can later put things in perspective.

Then go to "simple introduction to assembly". If you can understand assembly language, which is not hard, but a bit "strange" sometimes, then you shouldnt have that much of a problem with C also.
But its a process and it takes time. It works better if you do it in small steps. And you atleast partly understand what are you doing .. GL
Dolenc is offline   Reply With Quote
Likes: (1)
Old 12-23-2011   #26
fqtbrqt
Member
null
 
fqtbrqt's Avatar
 
Join Date: Dec 2011
Posts: 35
Likes: 7
Liked 7 Times in 4 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thx for the hints I'm thankful for every bone you throw at me :D
fqtbrqt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 03:52 PM.