• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 … 3 4 5 6 7 … 19 Next »

Is there any simple encoder for PowerPC instructions?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Is there any simple encoder for PowerPC instructions?
04-11-2021, 10:40 AM
#1
v1993 Offline
Bugger
**
Posts: 45
Threads: 11
Joined: Dec 2019
Have been messing around with Dolphin's debugger today and already spent half an hour trying to encode simple instruction (namely, shift register r3 left by one bit), without success so far. IBM's docs list bit-by-bit structure of instructions, but it is a pretty hard format to manually work with.

Is there some tool that can help with encoding single PPC instructions from their mnemonic form into 4-byte hex that Dolphin accepts? I guess C compiler for PPC targetĀ + disassembler may do, but it is a huge overkill for encoding a single instruction. Also, support for input of instructions in their mnemonic form would be anĀ amazing addition to Dolphin's debugger.
Find
Reply
04-12-2021, 12:22 AM
#2
v1993 Offline
Bugger
**
Posts: 45
Threads: 11
Joined: Dec 2019
Partial solution I've settled down for now: use https://godbolt.org/ with powerpc target and inline assembly and look up opcodes in output. Yes, it is an overkill and yes, you'll have to calculate branches some other way, but at least it helps with writing more complex instructions.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma