Codes
WiiRd forum
March 28, 2024, 08:33:31 PM *
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]
  Print  
Author Topic: Asm  (Read 2131 times)
Panda On Smack
Hacker
Hero Member
*****

Karma: 39
Posts: 606


Asm
« on: May 28, 2009, 01:48:36 PM »

Just trying to work out how you compare a value in a register with an actual value

r0  : 00000DBE

How would I compare r0 with DBE?

cmpwi r0,DBE

I can then use bne to jump past the next few lines if it's not equal? whats different with bne- and bne+ ?

also is each line the value of 4 in hex? I have some ASM guides but they explain it as if you understand it already Sad

ta


I think i sussed it:

cmpwi r0,3518
bne- 0x8
li r6,15
stbx r6,r7,r0
« Last Edit: May 28, 2009, 02:01:58 PM by Panda On Smack » Logged
Link
that dev there
Moderator
Hero Member
*****

Karma: 76
Posts: 1254

I hate everyone in this community. Except for you!


WWW
« Reply #1 on: May 28, 2009, 02:01:44 PM »

http://hpcf.nersc.gov/vendor_docs/ibm/asm/branch_mnem.htm

+ Predict branch to be taken
- Predict branch not to be taken (fall through)
Logged

Panda On Smack
Hacker
Hero Member
*****

Karma: 39
Posts: 606


« Reply #2 on: May 28, 2009, 02:02:12 PM »

Thanks Link

Is there a tutorial anywhere about a button activator code via asm?

When my C2 code runs i want to load the value at an address (8014E110) into a register and compare that to certain values and do things accordingly

ta
« Last Edit: May 28, 2009, 03:30:19 PM by Panda On Smack » Logged
Romaap
Hacker
Moderator
Legendary Member
*****

Karma: 89
Posts: 1802


WWW
« Reply #3 on: May 28, 2009, 06:08:57 PM »

Black_Wolf made a tutorial for an ASM moonjump code with button activator.

but what you have to do is just:
lis rA,0x8014
ori rA,rA,0xE110
lwz rB,(rA)
cmpi rB,value
« Last Edit: May 28, 2009, 06:11:30 PM by Romaap » Logged
Panda On Smack
Hacker
Hero Member
*****

Karma: 39
Posts: 606


« Reply #4 on: May 28, 2009, 06:22:15 PM »

Top banana

thanks Ro to the map
Logged
ssbbdude
Hacker
Full Member
*****

Karma: 14
Posts: 194

degie_999@hotmail.co.uk
« Reply #5 on: May 28, 2009, 06:24:12 PM »

hes not romap hes rommap
Logged
Romaap
Hacker
Moderator
Legendary Member
*****

Karma: 89
Posts: 1802


WWW
« Reply #6 on: May 28, 2009, 06:39:07 PM »

Top banana

thanks Ro to the map
hes not romap hes rommap
...
Logged
ssbbdude
Hacker
Full Member
*****

Karma: 14
Posts: 194

degie_999@hotmail.co.uk
« Reply #7 on: May 28, 2009, 07:18:43 PM »

romaap i mean XD
Logged
dragonboy269
Hacker
Jr. Member
*****

Karma: 10
Posts: 70


« Reply #8 on: May 28, 2009, 10:45:30 PM »

for example (with random registers and random values)

Code:
lis r5,0x5222
lwz r4,0x1222(r5)
#r4 now holds the value at 52221222 (random location, but just an example)
cmpwi r4,0x5555
bne skip
#put the code you wanna skip over here, for example:
addi r4,0x2
skip:
#continues here
addi r4,0x5
« Last Edit: May 28, 2009, 10:47:05 PM by dragonboy269 » Logged

If you have any requests for AC:WW/AC:CF codes, send me a message. Cheesy
Pages: [1]
  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!