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
Negative Offsets & ASM Empty4/7/2024, 2:34 pm by SnB@BWH

» Bully Made It Into a BIG Video 400K Views
Negative Offsets & ASM Empty4/7/2024, 6:58 am by Bully@WiiPlaza

» Wii Play Tanks
Negative Offsets & ASM Empty3/24/2024, 2:46 pm by helpmeout

» [Bypass Paywalls] (Global) @magnolia1234 - GitLab
Negative Offsets & ASM Empty3/18/2024, 3:55 am by Seth@WiiPlaza

» [Download] Mary Shelley's Frankenhole
Negative Offsets & ASM Empty3/16/2024, 8:29 am by Seth@WiiPlaza

» Completely Custom Modded Controllers (Undetectable)
Negative Offsets & ASM Empty3/5/2024, 1:55 pm by Shadow@BWH

» (Zombies) Drink perks code?
Negative Offsets & ASM Empty3/5/2024, 1:24 pm by Shadow@BWH

» Die Rückkehr zu STEAM und WARFACE
Negative Offsets & ASM Empty3/2/2024, 3:54 am by Seth@WiiPlaza

» First person hand model change?
Negative Offsets & ASM Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
Negative Offsets & ASM 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

Negative Offsets & ASM

2 posters

Go down  Message [Page 1 of 1]

1Negative Offsets & ASM Empty Negative Offsets & ASM 2/5/2013, 10:04 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

FIXED


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

The energy you give, you shall receive.

2Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:13 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

???
It didn´t need fixing.


_________________
Negative Offsets & ASM YBjg74I

3Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:14 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Yes it did... for some reason it was this before I changed it.


No Migrate God Mode [Bully@Wiiplaza/ Welohabi]
2817E372 00000002
C0000000 00000004
3D40814C 3D808000
818C2880 1D6C0280
7D4A5A14 39800001
998AD947 4E800020
E0000000 80008000
*For use with "No Migrate Master Code"*


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

The energy you give, you shall receive.

4Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:19 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

You failed.
It was correct because I used negative offsets.
Don´t just undo random stuff you didn´t test.


_________________
Negative Offsets & ASM YBjg74I

5Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:22 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

What? I still don't see what you are talking about.


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

The energy you give, you shall receive.

6Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:24 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

I used negative offsets to save a code line, that´s why it´s a C and not a B.

814C0000 - ... = address
and not 814B0000 - ... = address

So yeah, please only edit the codes that get reported. I did test everything before putting it like this.


_________________
Negative Offsets & ASM YBjg74I

7Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:34 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

I'm still lost man. If you did this to all the codes, you should not have asked me to look at them again afterwords, because now I'm really confused.

I'm tired of these codes....

All I know is all my personal codes work. I'm done fucking with these....


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

The energy you give, you shall receive.

8Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:40 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Why are you lost?
If your address´ second 16bit part is greater than 0x8000 you seem to have to do lis and ori instead of lis and stw with offset, right? This can be fixed by using negative offsets.

Example:
We want to use address 80118191

What you most likely would do:
Spoiler:

What I would do:
Spoiler:
How to:
Spoiler:
We´re done f*cking with these pretty much anyways. Negative Offsets & ASM 1848667513


_________________
Negative Offsets & ASM YBjg74I

9Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:49 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Haha... this stirs up at least 100 more questions for me. Apparently I have been overlooking these negatives in HEX for a while....

So help me here....

-32751 = FFFF8011

but... lis r10,-32751 =? 0x80110000
and... lis r10,32785 =? 0x80110000

What is the difference?


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

The energy you give, you shall receive.

10Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:51 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

There is none! It gets interpreted as the same. Look, if you convert it back, it´ll show lis r10,-32751 as instruction, even if you used the positive equivalent before.


_________________
Negative Offsets & ASM YBjg74I

11Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 10:54 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

Lol oh god... I need to go bang my head on something for a bit. I'll be back. Razz


How do I know if I'm using positive or negative then?


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

The energy you give, you shall receive.

12Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 11:09 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

You don´t.

It´s like saying:
What do I need to do, to get my number decreased by 1?

You could add -1 or substract 1. Nobody will figure out for sure what you really did...

Another example:
Which value is 0xFF?

It´s signed -1 or unsigned 255. Nobody knows what it is. It only depends on how it´s defined or what makes sense for it the most.


_________________
Negative Offsets & ASM YBjg74I

13Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 11:24 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

So how does the ASM know to use either the signed or the unsigned value?

I thought -1 was FFFF....

I don't really know what signed and unsigned mean either...

And why can't I write anything bigger than 0x7FFF in the offset ..... You would think I could go to 0xFFFF ?

I never worried about any of this until now.


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

The energy you give, you shall receive.

14Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 11:30 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Hex values can represent negative values or not. You only see the difference if you look at the decimal value. Signed means that there are negatively interpreted values and unsigned means there aren´t. Example in my post above.

You better read about signed/unsigned values on wikipedia or so then.

I don´t know why you can´t use offsets bigger than 0x7FFF but you can achieve the same if you go negative. Remember to increase your upper 16bit so that you can substract and save an instruction.


_________________
Negative Offsets & ASM YBjg74I

15Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/5/2013, 11:45 pm

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

So back to the god mode....

No Migrate God Mode [Bully@Wiiplaza/ Welohabi]
2817E372 00000002
C0000000 00000004
3D40814C 3D808000
818C2880 1D6C0280
7D4A5A14 39800001
998AD947 4E800020
E0000000 80008000
*For use with "No Migrate Master Code"*

814C0000 - D947 = 814B26B9 WRONG

it is supposed to be this i think...

814C0000 - 26B9 = 814BD947 RIGHT


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

The energy you give, you shall receive.

16Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/6/2013, 12:14 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Nope.

You can NOT type stb rX, 0xD947 (rY) because it´s greater than 0x7FFF.
What it´s instead: stb rX, -0x26B9 (rY).

That´s why I´m right:
0x814C0000 - 0x26B9


_________________
Negative Offsets & ASM YBjg74I

17Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/6/2013, 12:38 am

Welohabi

Welohabi
Moderator & Coder
Moderator & Coder

oh shit i get it now

haha, study


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

The energy you give, you shall receive.

18Negative Offsets & ASM Empty Re: Negative Offsets & ASM 2/6/2013, 2:35 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Guess it´s solved.
You can post anyways even if it´s closed.


_________________
Negative Offsets & ASM YBjg74I

Sponsored content



Back to top  Message [Page 1 of 1]

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