Codes
WiiRd forum
March 29, 2024, 09:49:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome on the new server

Update 4.3 - do NOT update!
Gecko 1.9.3.1
Should I get a USB Gecko, I wanna hack?
How do I use my USB Gecko
Where can I get WiiRd?
 
   Home   CODE DATABASE GAMEHACKING Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: I can't find some variables, can you help me?  (Read 4416 times)
Bully@Wiiplaza
Hacker
Legendary Member
*****

Karma: 93
Posts: 1853


WWW
« Reply #30 on: December 13, 2013, 05:29:39 PM »

My source of the fixed teleporter:
Spoiler for Hiden:
Hook: 80246A88

.set STORAGE, 0x80001650
.set BUTTON_MINUS, 0x1000
.set BUTTON_ONE, 0x200
.set BUTTON_ADDRESS, 0x8037A640

lis r12, STORAGE@h

lis r10, BUTTON_ADDRESS@h
ori r10, r10, BUTTON_ADDRESS@l
lhz r10, 0 (r10)

andi. r9, r10, BUTTON_MINUS
beq- _NOSTORE

lwz r11, 0 (r5)
stw r11, STORAGE@l (r12)
lwz r11, 8 (r5)
stw r11, STORAGE + 4@l (r12)

_NOSTORE:

andi. r9, r10, BUTTON_ONE
beq- _NOLOAD

lwz r11, STORAGE@l (r12)
stw r11, 0 (r5)
lwz r11, STORAGE + 4@l (r12)
stw r11, 8 (r5)

_NOLOAD:

lfs f0,8(r5)
Note that there are x y z coordinates but only x and z are actually used.
The height is always 0.

http://geckocodes.org/?c=RHAP01
« Last Edit: December 13, 2013, 06:47:32 PM by Bully@Wiiplaza » Logged

My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully
megazig
Hacker
Full Member
*****

Karma: 4
Posts: 127


« Reply #31 on: December 13, 2013, 08:58:41 PM »

My source of the fixed teleporter:
Spoiler for Hiden:
Hook: 80246A88

.set STORAGE, 0x80001650
.set BUTTON_MINUS, 0x1000
.set BUTTON_ONE, 0x200
.set BUTTON_ADDRESS, 0x8037A640

lis r12, STORAGE@ha

lis r10, BUTTON_ADDRESS@ha
lhz r10, BUTTON_ADDRESS@l (r10)

andi. r9, r10, BUTTON_MINUS
beq- _NOSTORE

lwz r11, 0 (r5)
stw r11, STORAGE@l (r12)
lwz r11, 8 (r5)
stw r11, STORAGE + 4@l (r12)

_NOSTORE:

andi. r9, r10, BUTTON_ONE
beq- _NOLOAD

lwz r11, STORAGE@l (r12)
stw r11, 0 (r5)
lwz r11, STORAGE + 4@l (r12)
stw r11, 8 (r5)

_NOLOAD:

lfs f0,8(r5)
Note that there are x y z coordinates but only x and z are actually used.
The height is always 0.

http://geckocodes.org/?c=RHAP01

now with less code and more safety. lwz/stw use SIMM so offset needs @ha for initial lis
I'm also not too keen on using the 0x80000000-0x80001800 area for storage as it's not defined for such things. setting up variables in your .s would be better
« Last Edit: December 13, 2013, 09:01:13 PM by megazig » Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!