Program-encoding-Assembly Technique
Program-encoding-Assembly Technique
Department of CS/IT HU
Program encoding
Op code
Each instruction has an op code that identifies it, and this is always the first byte in the encoded
instruction.
Mnemonics
Assembly language programs use mnemonics for each machine level instruction, such as ADD,
SUB, and MOV.
Assembler
An assembler program converts assembly language programs into machine code. The assembler
assigns binary values to memory locations and instruction op codes.
Assembly language is a low-level programming language that was commonly used in the early
days of computing. Today, it's more common to use small amounts of assembly language code
within larger systems that are written in higher-level languages.
• It is time to take a look that the actual machine instruction format of the x 86 CPU
families.
• They don't call the x86 CPU a Complex Instruction Set Computer (CISC) for nothing!
• Although more complex instruction encodings exist, no one is going to challenge that the
x86 has a complex instruction encoding:
3. X86 Instruction Format
• This provides for up to 512 different instruction classes, although the x86 does not yet
use them all.