0% found this document useful (0 votes)
19 views4 pages

Lab 04

The document introduces an lab on the 8086 CPU emulator and assembler, discussing instructions like MOV, XCHG, ADD, SUB, INC, DEC, and NEG that transfer or perform arithmetic on data in registers and memory, and tasks like starting the emulator, using its debugger, and practicing commands.

Uploaded by

sp22-bcs-136
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)
19 views4 pages

Lab 04

The document introduces an lab on the 8086 CPU emulator and assembler, discussing instructions like MOV, XCHG, ADD, SUB, INC, DEC, and NEG that transfer or perform arithmetic on data in registers and memory, and tasks like starting the emulator, using its debugger, and practicing commands.

Uploaded by

sp22-bcs-136
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/ 4

LAB 04: Introduction to Emulator 8086

Objectives:
Introduction to the emu 8086 assembler and its procedure of operation.

Pre-Lab Task
There are over a hundred instructions in the instruction set for the 8086 CPU. But in today’s lab
we will discuss some of the most useful instructions. These are:

Instructions Description Example

Transfer data between registers, between register and a MOV AX, Word1
MOV memory location, MOVE a number directly into register or MOV AX, BX
memory location.
MOV AH,’A’
Exchanges the contents of two registers, or a register and a XCHG AH, BL
XCHG
memory location. XCHG AX, Word1
ADDs contents of two registers, a register and a memory ADD Word1, AX
ADD
location, a number to a register or memory location. ADD BL,5
SUBTRACTS contents of two registers, a register and a
SUB memory location, a number to a register or memory SUB AX, DX
location.
INC ADDs 1 to the contents of a register or memory location INC Word1
DEC Subtracts 1 from a register or a memory location. DEC Byte1
Replaces the contents of destination by its two’s
NEG
complement. NEG BX

In-Lab Task:
8086 EMULATORS

Emu 8086 startup


Start emulation by clicking the “emulate” button on the toolbar. A new emulator window will appear.
Post lab Assignment
Practice all commands done with debugger in emu8086.

Critical Analysis /Conclusion

You might also like