dcx2
Computer Engineer
Moderator
Legendary Member
Karma: 165
Posts: 3468
|
|
« Reply #30 on: July 24, 2010, 04:30:40 PM » |
|
No, it doesn't work with Link's tool. But I looked at how Gecko.NET assembles the instructions, and I noticed that there's another switch on the command line for the assembler. -mgekko is needed to make the powerpc-gekko-as recognize the Paired Single opcodes.
I managed to add the extension to the Python call, but man...Python is a weird language.
In addition to the powerpc-eabi ~> powerpc-gekko changes that are required, and copying over the powerpc-gekko files to the ext/win32 folder, you need to modify another line in eabi.py to add the -mgekko switch.
output = sub.Popen([self.eabi_as, "-mgekko", "-mregnames", "-o", "./tmp/src1.o", self.txtfile], stdout=sub.PIPE, stderr=sub.PIPE).communicate()
Now PyiiASMH will recognize the Paired Single opcodes. ^_^!!! Thanks for your help!
|
|
|
Logged
|
|
|
|
hawkeye2777
Hacker
Sr. Member
Karma: 25
Posts: 355
|
|
« Reply #31 on: July 24, 2010, 04:41:14 PM » |
|
Glad you have it figured out; I'll try to add an option for custom executables when I have time for it.
EDIT: What was the assembled output of psq_l f0,0(r12),0,0? I added -mgekko to the args list and got E00C0000 (this is using powerpc-eabi). If I got the right output, I might be able to upload new versions today.
|
|
« Last Edit: July 24, 2010, 04:49:06 PM by hawkeye2777 »
|
Logged
|
Currently "retired" from hacking codes.
|
|
|
dcx2
Computer Engineer
Moderator
Legendary Member
Karma: 165
Posts: 3468
|
|
« Reply #32 on: July 24, 2010, 05:19:04 PM » |
|
Yes, E00C0000 is the correct output for psq_l blahblah
You should also try ps_nmsub f0,f0,f0,f0 = 1000003C
That's freaking awesome that it works with the eabi builds.
FYI, if you google "yet another gamecube documentation" they have a list of all the paired singles op codes, and what they do.
|
|
|
Logged
|
|
|
|
hawkeye2777
Hacker
Sr. Member
Karma: 25
Posts: 355
|
|
« Reply #33 on: July 24, 2010, 05:58:49 PM » |
|
Uploaded new archives with the -mgekko argument added (on Google Code).
And yeah, that did work. Thanks for finding bugs and stuff.
|
|
|
Logged
|
Currently "retired" from hacking codes.
|
|
|
|
dcx2
Computer Engineer
Moderator
Legendary Member
Karma: 165
Posts: 3468
|
|
« Reply #35 on: July 26, 2010, 04:47:14 AM » |
|
Hey hawkeye, where's the source for vdappc? It looks like there's a bug, and I think it's in vdappc.
When I assemble ps_nmadd f0,f0,f0,f0 it turns into 1000003E. Which is correct, according to YAGD.
But when you try to run the process backwards, 1000003E turns into ps_nmsub! vdappc is what's used to turn machine code into assembly, right?
|
|
|
Logged
|
|
|
|
hawkeye2777
Hacker
Sr. Member
Karma: 25
Posts: 355
|
|
« Reply #36 on: August 01, 2010, 11:35:39 PM » |
|
I'm using the modified vdappc source that Link posted on his blog.
|
|
|
Logged
|
Currently "retired" from hacking codes.
|
|
|
dcx2
Computer Engineer
Moderator
Legendary Member
Karma: 165
Posts: 3468
|
|
« Reply #37 on: August 02, 2010, 12:32:12 AM » |
|
I'm pretty sure there's a bug in that vdappc code. Lines 1638 and 1642 of the switch are backwards. I checked out the other op codes and they all look good...
|
|
|
Logged
|
|
|
|
WiiOs-Ozelot
Full Member
Karma: -5
Posts: 108
I have a potty mouth
|
|
« Reply #38 on: August 14, 2010, 10:54:34 PM » |
|
Hey hawkeye2777, can you add a Save/Load Dialog for Session's? The old session overwritten the old Sav file. Can you add this? PyiiASMH works now greetz oze
|
|
|
Logged
|
I'm make Gamecube Codes with SD Media Launcher and Gamecube Console (Not Wii) ^^
|
|
|
hawkeye2777
Hacker
Sr. Member
Karma: 25
Posts: 355
|
|
« Reply #39 on: August 14, 2010, 11:21:50 PM » |
|
Hey hawkeye2777, can you add a Save/Load Dialog for Session's? The old session overwritten the old Sav file. Can you add this? PyiiASMH works now greetz oze So you want a 'File->Save As' type dialog, where you could save the sessions anywhere?
|
|
|
Logged
|
Currently "retired" from hacking codes.
|
|
|
Bully@Wiiplaza
Hacker
Legendary Member
Karma: 93
Posts: 1853
|
|
« Reply #40 on: August 27, 2010, 07:51:46 PM » |
|
Sry, but where´s the working download for the newest version? My system: 32bit and Vista. I tried a few "packs" but they didn´t contain an exe data...
|
|
|
Logged
|
|
|
|
hawkeye2777
Hacker
Sr. Member
Karma: 25
Posts: 355
|
|
« Reply #41 on: August 27, 2010, 09:17:44 PM » |
|
Sry, but where´s the working download for the newest version? My system: 32bit and Vista. I tried a few "packs" but they didn´t contain an exe data...
Please read the README. If you still can't get it working after you read it, post here and I'll try and help.
|
|
|
Logged
|
Currently "retired" from hacking codes.
|
|
|
dcx2
Computer Engineer
Moderator
Legendary Member
Karma: 165
Posts: 3468
|
|
« Reply #42 on: August 27, 2010, 09:27:32 PM » |
|
Bully, you need Python in order to run PyiiASMH. You need all three links below.
|
|
|
Logged
|
|
|
|
Bully@Wiiplaza
Hacker
Legendary Member
Karma: 93
Posts: 1853
|
|
« Reply #43 on: August 28, 2010, 02:26:08 PM » |
|
okay thanks... since it´s better to have everything in one package, here it is: http://jafile.com/uploads/wiiplaza/packagepyiiasmh_wiiplaza.rarhosted on wiiplaza... Package + TuT by WiiOS Installation1.) Start "python-2.6.5.msi" 2.) Install PyQt-Py2.6-gpl-4.7.4-1.exe Finished! Starting1.) Go to the PyiiASMH folder 2. Double click on PyiiASMH.py and the PyiiASMH tool is launched!
|
|
|
Logged
|
|
|
|
Panda On Smack
Hacker
Hero Member
Karma: 39
Posts: 606
|
|
« Reply #44 on: October 07, 2010, 08:15:45 PM » |
|
Perhaps a bit of a stupid question but does a global 'translation' of asm to hex exist somewhere that's ported into apps like this or is it all written from scratch?
|
|
|
Logged
|
|
|
|
|