You are on page 1of 2

Abdul Samad

SP20-BCS-013

Lab 2: Basic Instructions


Objectives:
In this lab, students will learn how to use instructions MOV, ADD, INC and DEC in an assembly
language program.

Lab Activities:
Task 1: Now execute the following instructions (single-step) in EMU8086 and observe the changes in
contents of destination operand. If any instruction gives error, correct that error.
No Instructions Register Contents
.
MOV AL, 128 AL = 80h

MOV AX, F1ABh AX = F1ABh

MOV AX, -123 AX = FF85h

MOV BX, 123 BX = 7Bh

MOV AH, 010010001b AH = 91h

MOV 1234h, BX

MOV DX, 33h DX = 33h

MOV CX, ‘AB’ CX = 4142h

MOV CH, AL CH = 00h

MOV DL, BL DL = 00h

MOV AH, BL AH = 00h


Task 2: For each of the following assembly language instructions, what will be the possible register
value (in hex)? Assume all statements are being executed in a sequence and initially all registers contain
zero.

No. Instructions AX BX CX DX

AH AL BH BL CH CL DH DL

• MOV AX, 011b AX = 0003h

• MOV BH, 10H BX = 1000h

• MOV CX, 10 CX = 000Ah

• MOV DX, 1234H DX = 1234h

• ADD DH, DL DX = 4634h

• ADD AX, BX AX = 1003h

• INC AX AX = 1004h

• INC BL BX = 1001h

• DEC DX DX = 4633h

• DEC CH CX = FF0A

You might also like