|
|
#21 | |
|
Homebrew Developer
![]() |
. 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 .
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
|
|
|
|
|
|
|
#22 |
|
Member
![]() 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
|
|
|
|
|
|
#23 | |
|
Member
![]() Join Date: Dec 2011
Posts: 35
Likes: 7
Liked 7 Times in 4 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
|
Will give it a try when I put my nose in assembly languages
|
|
|
|
|
|
|
#24 | |
|
Homebrew Developer
![]() |
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!!!
|
|
|
|
|
|
|
#25 |
|
Member
![]() 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
|
|
|
|
|
Likes: (1) |
|
|
#26 |
|
Member
![]() 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
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|