BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» Lego Stars Wars: The Complete Saga [RLGE64]
Code analysing Empty11/12/2024, 3:19 am by SnB@BWH

» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
Code analysing Empty11/10/2024, 5:26 am by Bully@WiiPlaza

» Error Injecting Drool Links Saliva Mod Menu
Code analysing Empty11/10/2024, 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
Code analysing Empty10/16/2024, 1:59 pm by Reclaimer Shawn

» Metal Gear Solid V The Phantom Pain X Flashpoint Batman Gameplay unedited [Seth@WiiPlaza]
Code analysing Empty9/23/2024, 12:48 pm by Seth@WiiPlaza

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Code analysing Empty8/9/2024, 7:09 am by SnB@BWH

» ASM <> Gecko Code Converter
Code analysing Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
Code analysing Empty7/28/2024, 3:42 pm by SnB@BWH

» Wii RAM Hacking: Pointers and ASM
Code analysing Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
Code analysing Empty7/21/2024, 5:00 pm by Mac11ngAround

Search
 
 

Display results as :
 


Rechercher Advanced Search

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

Code analysing

4 posters

Go down  Message [Page 1 of 1]

1Code analysing Empty Code analysing 11/3/2012, 12:23 pm

Xylon

Xylon
Code Creator

I would like to learn all about codetypes, memory ranges, codeparts, bits, values, breaktpoints and so on. I have seen that there many codes with different parts, like here:
Teleporter -PAL- [Bully@Wiiplaza]
C23BAB14 0000000B
3D408065 614AB89A
A14A0000 3D608170
2C0A100C 4082001C
81990000 918B1500
81990004 918B1504
81990008 918B1508
2C0A200C 4082001C
818B1500 91990000
818B1504 91990004
818B1508 91990008
EC4007F2 00000000
*Press C+Z+D-PAD_DOWN to save position*
*Press C+Z+D-PAD_UP to teleport*
Why 81, it is the adress? Which is the memory range?
Know anyone tutorials? I would like to learn ALL about ASM and so on...

2Code analysing Empty Re: Code analysing 11/3/2012, 1:42 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

I explained this in the other thread but I will repeat my explanation here.

This code is a C2 Codetype
Code analysing RyImV
C23BAB14 0000000B
This entire code is replacing the original ASM instruction at address 803BAB14 with the next 11 lines in the code which are all ASM instructions. B = 11

You can use PyiiASMH to see these ASM instructions which are:
lis r10,-32667
ori r10,r10,47258

lhz r10,0(r10)
lis r11,-32400
cmpwi r10,4108
bne- 0x001C
lwz r12,0(r25)
stw r12,5376(r11)
lwz r12,4(r25)
stw r12,5380(r11)
lwz r12,8(r25)
stw r12,5384(r11)
cmpwi r10,8204
bne- 0x001C
lwz r12,5376(r11)
stw r12,0(r25)
lwz r12,5380(r11)
stw r12,4(r25)
lwz r12,5384(r11)
stw r12,8(r25)
fmuls f2,f0,f31

Each instruction represents 8 digits of the code.
For example, these two instruction are the 16 digits on the second line of the code.
lis r10,-32667 = 3D408065
ori r10,r10,47258 =614AB89A


The 81 "codetypes" you are seeing are the lwz instructions.



This code also gave me a question of my own. I am curious to which part of the ASM are making the button activators work. I'm guessing it has something to do with the cmpwi instructions. Maybe Bully will let me know.


_________________
Please help me earn some extra Dropbox & MediaFire space. https://db.tt/2H7prurb2d www.mediafire.com/?renl53g

The energy you give, you shall receive.

3Code analysing Empty Re: Code analysing 11/4/2012, 9:33 am

Xylon

Xylon
Code Creator

Really complicated, especially for me, because my English is not so well...

Sincerely

4Code analysing Empty Re: Code analysing 11/4/2012, 10:43 am

Seth@WiiPlaza

Seth@WiiPlaza
Admin & Coder
Admin & Coder

Xylon wrote: my English is not so well...

Code analysing ORLY


_________________
Code analysing Signat10

Code analysing Rsz_1r10  

https://github.com/SethWiiPlaza

5Code analysing Empty Re: Code analysing 11/4/2012, 11:17 am

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Xylon wrote:Really complicated, especially for me, because my English is not so well...

Sincerely

Well that is the only language I know. I tried. Neutral


_________________
Please help me earn some extra Dropbox & MediaFire space. https://db.tt/2H7prurb2d www.mediafire.com/?renl53g

The energy you give, you shall receive.

6Code analysing Empty Re: Code analysing 11/4/2012, 8:44 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

It´s useful to turn every ASM code into it´s "0x" syntax, also replacing branch offsets with labels to see things better.

Remember to keep a copy when your code is longer, like I did. The "source" (how I call that format) code can be recovered again, but it´s more convenient to keep it.
Code:
lis r10, 0x8065
ori r10,r10, 0xB89A
lhz r10,0(r10) #r10 now contains the value from the button activator address#

lis r11, 0x8170 #we load the first 16bit of a ramdom RAM location for the store#

cmpwi r10, 0x100C #compare if that button combo has been pressed#
bne- _END1 #if not, jump to the second compare#

lwz r12,0(r25)
stw r12,0x1500(r11)
lwz r12,4(r25)
stw r12,0x1504(r11)
lwz r12,8(r25)
stw r12,0x1508(r11) #this part loads your 3 coords and stores it to the RAM (save)#

_END1: #branch label#

cmpwi r10, 0x200C
bne- _END2

lwz r12,0x1500(r11)
stw r12,0(r25)
lwz r12,0x1504(r11)
stw r12,4(r25)
lwz r12,0x1508(r11)
stw r12,8(r25) #this part reads the stored coords and writes them back (teleport)#

_END2:

fmuls f2,f0,f31 #original instruction at this address#
You should see greatly what the code is doing now.

Note:
- It doesn´t matter how many blanks you insert into your ASM code
- The code can still be converted (!) even with the comments in it (yes, it will be equal to the code I made, even with all the optical changes)


_________________
Code analysing YBjg74I

7Code analysing Empty Re: Code analysing 11/5/2012, 7:36 am

Xylon

Xylon
Code Creator

Neutral I think I should start slowly...I just started to hack Smile

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum