0% found this document useful (0 votes)
143 views7 pages

Lab Assignment 2

The document discusses an Intel 8086 microprocessor and assembly language. It defines the Intel 8086 and assembly language, explaining that assembly language corresponds closely to machine code. It describes commands like mov, add, jc, and jnc. It also introduces emu8086, an emulator that behaves like an Intel 8086, and explains how it can be used to write, emulate, and verify assembly language code for problems. Tasks are performed, results shown, and calculations verified, allowing the conclusion that emu8086 works like a real 8086 and assembly language allows operations on the 8086.

Uploaded by

Jason Murphy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views7 pages

Lab Assignment 2

The document discusses an Intel 8086 microprocessor and assembly language. It defines the Intel 8086 and assembly language, explaining that assembly language corresponds closely to machine code. It describes commands like mov, add, jc, and jnc. It also introduces emu8086, an emulator that behaves like an Intel 8086, and explains how it can be used to write, emulate, and verify assembly language code for problems. Tasks are performed, results shown, and calculations verified, allowing the conclusion that emu8086 works like a real 8086 and assembly language allows operations on the 8086.

Uploaded by

Jason Murphy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Problem Statement:

and

Literature Background:
Definition and explanation of some technical terms that we use in our analysis.

Intel 8086: The 8086 ("eighty eighty-six", also called iAPX 86) is a 16-bit microprocessor chip


designed by Intel between early 1976 and mid-1978, when it was released. The Intel 8088,
released in 1979, was a slightly modified chip with an external 8-bit data bus(allowing the use
of cheaper and fewer supporting ICs), and is notable as the processor used in the original IBM
PC design, including the widespread version called IBM PC XT.
Assembly language: An assembly (or assembler) language, often abbreviated asm, is a low-level
programming language for a computer, or other programmable device, in which there is a very
strong (generally one-to-one) correspondence between the language and
the architecture's machine code instructions. Each assembly language is specific to a particular
computer architecture, in contrast to most high-level programming languages, which are
generally portable across multiple architectures, but require interpreting or compiling.
Assembly language may also be called symbolic machine code.

Assembly language is converted into executable machine code by a utility program referred to


as an assembler. The conversion process is referred to as assembly, or assembling the source
code. Assembly time is the computational step where an assembler is run.

Commands in Code:

______________________________________________________________________________

mov: Its mean “move” actually it copies data from one location to another or in special
registers.

mov Syntax: mov Destination, source


________________________________________________________________________________

add: It perform athematic operation

add Syntax: add Destination, source

______________________________________________________________________________

jc: If is a jump from the code to the label, if carry occurs

jc Syntax: jc label ;label is any alphabet but not a keyword

______________________________________________________________________________

jnc: If is a jump from the code to the label, if carry not occurs

jnc Syntax: jnc label ;label is any alphabet but not a keyword

______________________________________________________________________________

emu8086: It is an emulator for Intel 8086 microprocessor which works on different operating
systems and it perfectly behaves (operations, instructions, commands, process etc.) like Intel
8086.

In the 80386 microprocessor and later, virtual 8086 mode (also called virtual real mode, V86-


mode or VM86) allows the execution of real mode applications that are incapable of
running directly in protected mode while the processor is running a protected mode operating
system. It is a hardware virtualization technique that allowed multiple 8086 processors to be
emulated by the 386 chip; it emerged from the painful experiences with the 80286 protected
mode, which by itself was not suitable enough to run concurrent MS-DOS applications well.

Procedure:
 Open emu8066
 Write an assembly language code for the above problem statement’s
 Click on emulate and check results
 Now click on converter and verify results.

Assembly language Code

Task 1
Result:
Task 2:
Result:

Verification via Calculator:


Conclusion
 emu8086 works exactly like Intel 8086
 Using Assembly language we can perform different operation on Intel 8086
 Using cmd “jc” and “jnc” we can perform jumps within code on different labels to perform
our desire work.

You might also like