Lab PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Microprocessor and Assembly Language Instructor: Mughees Ahmad

An Introduction to EMU8086 & Basic Instructions of Assembly Language


Tasks
1. Read slides: EMU Intro.pptx and familiarize yourself with the tool.
2. Find out what are registers.
3. Learn how basic instructions of MOV, ADD, SUB are used.
4. Execute following statements (single-step) in EMU8086. Observe changes in the contents of
destination operand.

No Code Snippet Result


.
A. MOV AX, 4D12h
MOV BX, 1C21h
ADD AX, BX
B. MOV AX, 4D12h
MOV BX, 1C21h
SUB AX, BX
C. MOV AL, 25
MOV BH, 1Ch
ADD AL, BH
D. MOV CL, 10000011b
MOV CH, 10010010b
SUB CH, CL
E. MOV AX, 80h
ADD AX, 01
F. MOV AL, 80h
ADD AL, 01
G. MOV AL, 0A5h
MOV BL, 12h
ADD AL, BL
MOV DH, BL
SUB DH, 10
Microprocessor and Assembly Language Instructor: Mughees Ahmad

You might also like