Click here to Skip to main content
15,886,077 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 2:54
mvahoney the codewitch31-Dec-20 2:54 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
W Balboos, GHB31-Dec-20 2:58
W Balboos, GHB31-Dec-20 2:58 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 3:02
mvahoney the codewitch31-Dec-20 3:02 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Slacker00731-Dec-20 3:42
professionalSlacker00731-Dec-20 3:42 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 3:44
mvahoney the codewitch31-Dec-20 3:44 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Randor 31-Dec-20 4:05
professional Randor 31-Dec-20 4:05 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 4:06
mvahoney the codewitch31-Dec-20 4:06 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Rick York31-Dec-20 7:29
mveRick York31-Dec-20 7:29 
Actually, it's not that hard. The hardest part is determining how far to go. What I mean is I have a little library that will disassemble X86 code up to the 32-bit, Pentium level. It does not do X86-64 stuff. It began life as a 486 disassembler and I added more to it for the Pentium instruction set and tweaked it a bit more. Here's the prototype of the entry point :
int DisAsm( unsigned char *buffer, int length, FILE *fpout );
As I mentioned, I'm not sure how to determine the length in compiled code. I used this when I wrote a C-like scripting language and then converted its java-style, interpreted byte code into Pentium machine code and this let me see the emitted code so, of course, I knew the length. You could probably set up a table of your functions addresses and use some pointer arithmetic to determine the bounds of each function's code. You could also use this along with a PE file reader and make a disassembler for executable files if you wanted to. FWIW, I have compared its output with listings output from VS C++ and they agreed.

Anyway, I can share this with you if you would like it. I found it years ago and it has a GNU license. Here's a comment from it :
Quote:
The code was originally snaffled from the GNU C++ debugger, as ported
to DOS by DJ Delorie and Kent Williams (williams@herky.cs.uiowa.edu).
Extensively modified by Robin Hilliard in Jan and May 1992.

"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 9:03
mvahoney the codewitch31-Dec-20 9:03 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Greg Utas31-Dec-20 9:26
professionalGreg Utas31-Dec-20 9:26 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 9:29
mvahoney the codewitch31-Dec-20 9:29 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Greg Utas31-Dec-20 10:52
professionalGreg Utas31-Dec-20 10:52 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 10:55
mvahoney the codewitch31-Dec-20 10:55 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Greg Utas31-Dec-20 11:15
professionalGreg Utas31-Dec-20 11:15 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
Rick York31-Dec-20 11:23
mveRick York31-Dec-20 11:23 
GeneralRe: Selective Disasm: This is either a really good tool or a really good idea for one Pin
honey the codewitch31-Dec-20 11:34
mvahoney the codewitch31-Dec-20 11:34 
GeneralOut with the scold, In with the brew? Pin
W Balboos, GHB31-Dec-20 2:27
W Balboos, GHB31-Dec-20 2:27 
GeneralRe: Out with the scold, In with the brew? Pin
RickZeeland31-Dec-20 2:38
mveRickZeeland31-Dec-20 2:38 
GeneralRe: Out with the scold, In with the brew? Pin
W Balboos, GHB31-Dec-20 2:48
W Balboos, GHB31-Dec-20 2:48 
GeneralRe: Out with the scold, In with the brew? Pin
Rick York31-Dec-20 7:40
mveRick York31-Dec-20 7:40 
JokeRe: Out with the scold, In with the brew? Pin
Daniel Pfeffer31-Dec-20 3:55
professionalDaniel Pfeffer31-Dec-20 3:55 
GeneralRe: Out with the scold, In with the brew? Pin
Chris C-B31-Dec-20 5:47
Chris C-B31-Dec-20 5:47 
GeneralRe: Out with the scold, In with the brew? Pin
BillWoodruff1-Jan-21 12:14
professionalBillWoodruff1-Jan-21 12:14 
GeneralRe: Out with the scold, In with the brew? Pin
W Balboos, GHB3-Jan-21 2:31
W Balboos, GHB3-Jan-21 2:31 
GeneralGreetings from 2021 Pin
Peter_in_278031-Dec-20 2:00
professionalPeter_in_278031-Dec-20 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.