Access over 20 million homework & study documents

Provide examples of three different x86 instruction mnemonics Brief

Content type
User Generated
Rating
Showing Page:
1/4
Provide examples of three different x86 instruction
mnemonics. Briefly explain what are the assembly
language components? Instruction mnemonic Directive
Label Comments Do assembly language directives
execute at run time? Convert the following C program to
x86 assembly code. Use 8086 instruction set.
Solution
1) The examples of three different x86 instruction
mnemonics are:
2)
Instruction mnemonic:
It is a word used in assembly language to represent a
binary machine instruction operation code. Different
processors have different instruction sets and so use
different set of mnemonics to represent them.
The different set of Instruction mnemonics are:
Directive:
Directives are the commands that are a part of
assembler syntax but are not related to x86 processor
instruction set. All assembler directives begin with a
period(.).
Some of the assembler directives are:

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/4
Label:
A label can be placed at the beginning of the statement. In
assembly language label is assigned the current value of
active location counter and serves as instruction operand.
Labels are of two types. They are numeric label and
sybolic label. Each label represents a memory address in
assembly language. The address may be address of data
or address of an instruction.
Comments:
Compared to high level languages comments are more
important for assembly languages. Comments are needed
not only for others to understand your code but it is more
important for you to read the comment and understand the
code. Comments are needed when debugging. Comments
are needed to check that you have correct algorithm and to
check the assembly language code implements it correctly.
There are four types of comments. They are:
3) Assembly language directives do not execute at run
time because directives do not represent machine
instructions. They just direct the assembler to do
something while translating the program to machine code,
like to allocate space to a variable and give it a initial
value.
4)
.Ltext0:

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/4

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 4 pages?
Access Now
Unformatted Attachment Preview
Provide examples of three different x86 instruction mnemonics. Briefly explain what are the assembly language components? Instruction mnemonic Directive Label Comments Do assembly language directives execute at run time? Convert the following C pro gram to x86 assembly code. Use 8086 instruction set. Solution 1) The examples of three different x86 instruction mnemonics are: 2) Instruction mnemonic: It is a word used in assembly language to represent a binary machine instruction operation code. Different processors have different instruction sets and so use different set of mnemonics to represent them. The different set of Instruction mnemonics are: Directive: Directives are the commands that are a part of assembler syntax but are not related to x86 processor instruction set. All assembler directives begin with a period(.). Some of the assembler directives are: Label: A label can be placed at the beginning of the statement. In assembly language label is assigned the current value of active location counter and serves as instruction operand. Labels are of two types. They are numeric label and sybolic label. Each label represents a memory address in assembly language. The address ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
I was struggling with this subject, and this helped me a ton!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4