Section 9.3 of my textbook (www.lulu.com/spotlight/bobplantz) provides a *very brief* introduction to x86-64 machine language (0s and 1s) coding. If it would help you, I would be happy to send you a pdf copy of this section. A free preview copy of my book is available at bob.cs.sonoma.edu. Please note that the discussion in my book only describes the general nature of how instructions are coded in bit patterns. But once you understand this, I think it is obvious that trying to "disassemble" a set of random bit patterns would be meaningless. One could make some educated guesses, but there is no way to know for sure. Back in the 70s, I heard of programmers who would write code such that a particular group of bits would be treated as (a) and instruction, (b) constant data, or (c) an address, depending on where it was accessed in the program flow. Back in those days, we used assembly language to write self-modifying code. I once did it for a driver on a CT scanner. Memory was expensive in those days. Bob ________________________________________ From: linux-assembly-owner@xxxxxxxxxxxxxxx [linux-assembly-owner@xxxxxxxxxxxxxxx] on behalf of horseriver [horserivers@xxxxxxxxx] Sent: Friday, February 01, 2013 8:53 PM To: linux-assembly@xxxxxxxxxxxxxxx Subject: Disassembly of 00000 hi:) I have a question about disassemblly utility . If I fill an elf's text section with some random data,then how does the disas command work for these data? Is there occasion that several sequence of bytes can not be translated into legal instructions? thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html-- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- Disassembly of 00000
- From: horseriver
- Disassembly of 00000
- Prev by Date: Re: Disassembly of 00000
- Next by Date: Re: Disassembly of 00000
- Previous by thread: re: Disassembly of 00000
- Next by thread: mov instruction
- Index(es):