You are on page 1of 2

SPRING SEMESTER – 2020

APT2022-A
INTRODUCTION TO ASSEMBLY PROGRAMMING
ASSIGNMENT 2 (OUT OF 20)

a) What is implied by the 8086 microprocessor instruction MOV AX, 235h? Give the

contents of the AX, AH and AL registers in binary form upon execution of the instruction.

[5 marks]

MOV AX, 235h

MOV AX, 00235h 0000 0000 0010 0011 0101

b) What is implied by the 8086 microprocessor instruction ADD AX, 111111b? Give the

contents of the AX, AH and AL registers in binary form upon execution of the instruction

if the initial content of the AX register was 111111b. [5 marks]

AD AX, 0003Fh 0000 0000 0000 0011

AH, 03Fh 0000 0011

AH, 03Fh 0000 0011

c) Give a brief explanation of the features of a Complex Instruction Set Computer (CISC) microprocessor
structure. [5 marks]

CISC has the ability to execute addressing modes or multi-step operations within one instruction set. It
is the design of the CPU where one instruction performs many low-level operations. For example,
memory storage, an arithmetic operation and loading from memory.

d) Given the 8086 assembly program below, what is the final value (in binary and

hexadecimal forms) held within the AX register? [5 marks]

MOV AX, 9AH

NEG AX
AND AX, 8CH

MOV AX, 0009Ah 0000 0000 0000 1001

NEG AX

AND AX, 0008Ch 0000 0000 0000 1000

You might also like