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]
Please help with ASM Assembly Empty11/12/2024, 3:19 am by SnB@BWH

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

» Error Injecting Drool Links Saliva Mod Menu
Please help with ASM Assembly Empty11/10/2024, 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
Please help with ASM Assembly Empty10/16/2024, 1:59 pm by Reclaimer Shawn

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

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Please help with ASM Assembly Empty8/9/2024, 7:09 am by SnB@BWH

» ASM <> Gecko Code Converter
Please help with ASM Assembly Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
Please help with ASM Assembly Empty7/28/2024, 3:42 pm by SnB@BWH

» Wii RAM Hacking: Pointers and ASM
Please help with ASM Assembly Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
Please help with ASM Assembly 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

Please help with ASM Assembly

2 posters

Go down  Message [Page 1 of 1]

1Please help with ASM Assembly Empty Please help with ASM Assembly 8/26/2013, 2:16 am

jaeremix10

jaeremix10
Code Creator

So bully, after a while of trying out your PPC helper, ive noticed that all it does is write a value using li and ori, and then stores it.

That's helpful, but what about codes you have made that involve writes like 2C0C02B3.

I wanted to ask how you do this before attempting it myself to not look like a n00b. Please help me. I want to code better in ASM. Smile

2Please help with ASM Assembly Empty Re: Please help with ASM Assembly 8/26/2013, 11:43 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

The program only helps you with storing a single value to the memory. That is good enough most of the time, but obviously there's way more you can do such as conditional code.
Spoiler:
This reads the value from address 0x81345678 into r12. Then puts value 0x00000000 into r11. Compares if those two match. If they do match, the branch is taken (branch if equal = beq). Code #No matter what# is executed. However if they don't match, #No match# is executed and *then* #No matter what#.

If you want to do something like if and else you require to skip the button part by branching over if you reach the #No match# part.
Spoiler:
The branch labels can be named however you want. The destination must end with ":". Label names can not be the same to prevent ambiguous codes:
Spoiler:
By the way, # ... # is a comment which can be inserted into the code without causing compiling issues.


_________________
Please help with ASM Assembly YBjg74I

jaeremix10

jaeremix10
Code Creator

Oh! Now THIS is juicy meat. What do the r registers mean? Does it depend on the breakpoint?


_________________
All the "Official" coders hate me. That's what keeps me coding! Cool 

jaeremix10

jaeremix10
Code Creator

Why did u choose r12 and r11. Does it have to be those 2?


_________________
All the "Official" coders hate me. That's what keeps me coding! Cool 

Bully@WiiPlaza

Bully@WiiPlaza
 
 

r12 is the safest register to write stuff to. Work your way down the more registers you need. If you do a bad pick your game could just crash.

Depending on the breakpoint you may want to write a value to the register it loads into or stores from.



Last edited by Bully@WiiPlaza on 8/27/2013, 3:19 am; edited 1 time in total


_________________
Please help with ASM Assembly YBjg74I

jaeremix10

jaeremix10
Code Creator

Oh ok. You dont write #no match# in asmwiird right?


_________________
All the "Official" coders hate me. That's what keeps me coding! Cool 

Bully@WiiPlaza

Bully@WiiPlaza
 
 

This was just a comment to show you where to put code to execute when it doesn't match the comparison.


_________________
Please help with ASM Assembly YBjg74I

Sponsored content



Back to top  Message [Page 1 of 1]

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