Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Converting opcodes to bytecode for Gamecube Action Replay

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Burbank
How do I cheat?
Reputation: 0

Joined: 09 Apr 2017
Posts: 3

PostPosted: Sun Apr 09, 2017 1:29 pm    Post subject: Converting opcodes to bytecode for Gamecube Action Replay Reply with quote

Hi! Im trying to make a code for Eternal Darkness that doubles the damage taken. But I don't know how to write the opcodes as byte/hex? I just know how to NOP lines.

Problem:

I want to write a gamecube AR code that replaces the codeline at address 801A7518 with "slw 0x8120CBA4,r4,1".

This should shift the value in register r4 left 1 step (= multiply it with 2) and place it in memory address 0x8120CBA4 (8120CBA4 stores damage taken).

1. How should this instruction look in bytecode?
2.Is it even possible to use the full code address 0x8120CBA4 or is it too long to include in the instruction - (it needs to point to a register instead eg "slw r3,r4,1"?)
Back to top
View user's profile Send private message
Burbank
How do I cheat?
Reputation: 0

Joined: 09 Apr 2017
Posts: 3

PostPosted: Thu Apr 13, 2017 6:26 am    Post subject: Reply with quote

I looked around some more and I found the WiiRd tool that converts PPC ASM to hex codes. Theres also a useful list of ASM instructions on the wiibrew wiki Assembler_Tutorial page.

I made an AR code that doubles damage recieved for Eternal Darkness (US). I haven't tested very much yet but it seems to work ok (using Dolphin 4).

$DamageMod
04201E2C 4BDFE258
04000084 3CE08120
04000088 38E77FFF
0400008C 38E74BA5
04000090 A0E70000
04000094 7FE7F850
04000098 B3FE0030
0400009C 48201D94
Back to top
View user's profile Send private message
Burbank
How do I cheat?
Reputation: 0

Joined: 09 Apr 2017
Posts: 3

PostPosted: Mon Apr 24, 2017 11:44 am    Post subject: Reply with quote

I took another look at this and made an addition - The old code also triggered when healing and in some other situations so I put in a fix for that. I also made a version for sanity damage.
This should make the game a bit harder.

2x Damage taken

04201E2C 4BDFE36C
04000198 3CE08120
0400019C 38E77FFF
040001A0 38E74BA5
040001A4 A0E70000
040001A8 A01E0030
040001AC 7F9F0000
040001B0 409C0010
040001B4 2F8003E8
040001B8 409C0008
040001BC 7FE7F850
040001C0 B3FE0030
040001C4 48201C6C

2x Sanity damage taken

04038BE0 4BFC74A4
04000084 3C808120
04000088 38847FFF
0400008C 38844BA6
04000090 88840000
04000094 A00300E2
04000098 7F9C0000
0400009C 409C0010
040000A0 2F8003E8
040000A4 409C0008
040000A8 7F84E050
040000AC B38300E2
040000B0 48038B34
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites