Thread: Disassembler
View Single Post
Old 10 November 2012, 21:04   #23
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 539
Quote:
Originally Posted by Don_Adan View Post
Check this thread:
http://eab.abime.net/showthread.php?t=56426
no doc, but maybe useful for something.
Yeah, I went looking for the mentioned disk images in order to get an executable with symbols. The source code for the mentioned tool was available, but there was so much guesswork in it and "what the heck? I have 100 bytes left" that I went looking for something more authoritative. In the end I stumbled across this public domain aout2hux program which takes two fixed address aout binaries and uses them to construct a relocatable h68k .x file. I can now disassemble .x files, but my disassembler chokes on instructions it cannot handle yet.

Take this line from Tunnels and Trolls:
Code:
0x6683A: 0xFF3C: 1111[111]100[111][100] cpSAVE 7, Imm
Imm is actually an invalid effective addressing mode for the cpSAVE instruction, so as I understand it should cause an F-Line thingy. I think Resource disassembles these sorts of invalid instructions as "fRestore ?????" or even sometimes "AFLINE something".

Anyone have any insight into the best way to handle these invalid instructions?
copse is offline  
 
Page generated in 0.06448 seconds with 11 queries