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
» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Make 06 code shorter? Empty4/7/2024, 2:34 pm by SnB@BWH

» Bully Made It Into a BIG Video 400K Views
Make 06 code shorter? Empty4/7/2024, 6:58 am by Bully@WiiPlaza

» Wii Play Tanks
Make 06 code shorter? Empty3/24/2024, 2:46 pm by helpmeout

» [Bypass Paywalls] (Global) @magnolia1234 - GitLab
Make 06 code shorter? Empty3/18/2024, 3:55 am by Seth@WiiPlaza

» [Download] Mary Shelley's Frankenhole
Make 06 code shorter? Empty3/16/2024, 8:29 am by Seth@WiiPlaza

» Completely Custom Modded Controllers (Undetectable)
Make 06 code shorter? Empty3/5/2024, 1:55 pm by Shadow@BWH

» (Zombies) Drink perks code?
Make 06 code shorter? Empty3/5/2024, 1:24 pm by Shadow@BWH

» Die Rückkehr zu STEAM und WARFACE
Make 06 code shorter? Empty3/2/2024, 3:54 am by Seth@WiiPlaza

» First person hand model change?
Make 06 code shorter? Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
Make 06 code shorter? Empty2/21/2024, 8:52 am by naxil

Search
 
 

Display results as :
 


Rechercher Advanced Search

April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

Make 06 code shorter?

2 posters

Go down  Message [Page 1 of 1]

1Make 06 code shorter? Empty Make 06 code shorter? 12/25/2012, 10:57 am

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Is there a way to make this Wheel of Fortune code shorter? The zeros need to be there to overwrite the old answers I think.


All Answers = "Welohabi" [Welohabi]
06586B46 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586BBA 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586C2E 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586CA2 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586D16 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586D8A 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586DFE 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
00000000 00000000
06586E72 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586EE6 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06586F5A 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
06587042 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
0658712A 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
0658719E 00000020
57656C6F 68616269
00000000 00000000
00000000 00000000
00000000 00000000
E0000000 80008000


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

The energy you give, you shall receive.

2Make 06 code shorter? Empty Re: Make 06 code shorter? 12/25/2012, 12:02 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Yes ^_^

Did you notice how the offset between each 06 write constantly is 74?
Also, you only need 1 byte zero´ed in order for the game to stop reading text (00 means: "Stop here").

Example:

06XXXXXX 0000000C
57656C6F 68616269
00000000
00000000

The underlined will be written and makes you read "Welohabi" on screen, even though there´s text not overwritten in memory.

I´d suggest making everything a C0 code with a loop, execute body 13 times:
Code:
li r10, 0

lis r12, 0x8058

LOOP:

lis r11, 0x5765
ori r11, r11, 0x6C6F
stw r11, 0x6B46 (r12)

lis r11, 0x6861
ori r11, r11, 0x6269
stw r11, 0x6B4A (r12)

stfs f22,  0x6B4E (r12)

addi r12, r12, 0x74
addi r10, r10, 1

cmpwi r10, 13
ble LOOP
f22 because we assume it´s 00000000.



Last edited by Bully@WiiPlaza on 12/25/2012, 9:54 pm; edited 1 time in total


_________________
Make 06 code shorter? YBjg74I

3Make 06 code shorter? Empty Re: Make 06 code shorter? 12/25/2012, 1:03 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

The finished code would look like this? I like the little shortcut you did with the float register.

C0000000 00000007
39400000 3D808058
3D605765 616B6C6F
916C6B46 3D606861
616B6269 916C6B4A
D2CC6B4E 398C0074
394A0001 2C0A000D
40A1FFD8 4E800020

Thanks for the help Bully this helps me to understand ASM a little more. That LOOP command is beautiful.


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

The energy you give, you shall receive.

4Make 06 code shorter? Empty Re: Make 06 code shorter? 12/25/2012, 1:31 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

branch (jump) if less or equal


_________________
Make 06 code shorter? YBjg74I

5Make 06 code shorter? Empty Re: Make 06 code shorter? 12/25/2012, 1:39 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

so once it hits 13, it starts over again?


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

The energy you give, you shall receive.

6Make 06 code shorter? Empty Re: Make 06 code shorter? 12/25/2012, 9:53 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

No.
It writes 13 times and then quits.

But when the code executes again, it does all 13 writes again and again (just like RAM writes).


_________________
Make 06 code shorter? YBjg74I

7Make 06 code shorter? Empty Re: Make 06 code shorter? 12/26/2012, 4:34 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder


The code freezes the Wii. I don't know what I'm doing wrong.


li r10, 0
lis r12, 0x8058
LOOP:
lis r11, 0x5765
ori r11, r11, 0x6C6F
stw r11, 0x6B46 (r12)
lis r11, 0x6861
ori r11, r11, 0x6269
stw r11, 0x6B4A (r12)
stfs f22, 0x6B4E (r12)
addi r12, r12, 0x0074
addi r10, r10, 1
cmpwi r10, 13
ble- LOOP


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

The energy you give, you shall receive.

8Make 06 code shorter? Empty Re: Make 06 code shorter? 12/26/2012, 9:55 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Help please


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

The energy you give, you shall receive.

9Make 06 code shorter? Empty Re: Make 06 code shorter? 12/27/2012, 12:32 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Gecko.Net usually tells what went wrong. Did it disconnect from the game or something else?


_________________
Make 06 code shorter? YBjg74I

10Make 06 code shorter? Empty Re: Make 06 code shorter? 12/27/2012, 11:56 am

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

It just freezes, It does not catch the exception in the breakpoint tab.


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

The energy you give, you shall receive.

11Make 06 code shorter? Empty Re: Make 06 code shorter? 12/27/2012, 12:32 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Weird.

We´ll just use the 08 codetype, then. Sad

08586B46 57656C6F
200C0074 00000000
08586B4A 68616269
200C0074 00000000
08586B4A 00000000
000C0074 00000000

In case you don´t understand what I did, read the documentation. It pretty much explains everything.


_________________
Make 06 code shorter? YBjg74I

12Make 06 code shorter? Empty Re: Make 06 code shorter? 12/27/2012, 1:03 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

yeah but the C0 is alot better...


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

The energy you give, you shall receive.

Sponsored content



Back to top  Message [Page 1 of 1]

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