Lab 04
Lab 04
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:
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