Difference between revisions of "Machine Code"

From SkullSecurity
Jump to navigation Jump to search
Line 1: Line 1:
{{Infobox assembly}}
{{Infobox assembly}}


This section will discuss more detail about how an executable file full of hex becomes assembly, and what happens to that hex once it's loaded in memory.
== Machine Code ==
Machine code is simply an encoding of assembly language. Every assembly instruction has one or more bytes of machine code instructions associated with it, and that sequence of bytes translates to exactly one assembly instruction. The relationship is 1:1, by definition.
This is different than the relationship between C and assembly. A sequence of C commands can translate to a variety of assembly instructions, and a sequence of assembly instructions can translate to C commands. There is no strong relationship.
== eip ==




== Questions ==
== Questions ==
Feel free to edit this section and post questions, I'll do my best to answer them. But you may need to contact me to let me know that a question exists.
Feel free to edit this section and post questions, I'll do my best to answer them. But you may need to contact me to let me know that a question exists.

Revision as of 17:05, 14 March 2007

Assembly Language Tutorial
Please choose a tutorial page:

This section will discuss more detail about how an executable file full of hex becomes assembly, and what happens to that hex once it's loaded in memory.

Machine Code

Machine code is simply an encoding of assembly language. Every assembly instruction has one or more bytes of machine code instructions associated with it, and that sequence of bytes translates to exactly one assembly instruction. The relationship is 1:1, by definition.

This is different than the relationship between C and assembly. A sequence of C commands can translate to a variety of assembly instructions, and a sequence of assembly instructions can translate to C commands. There is no strong relationship.


eip

Questions

Feel free to edit this section and post questions, I'll do my best to answer them. But you may need to contact me to let me know that a question exists.