You are on page 1of 26

LDRP INSTITUTE OF TECHNOLOGY AND RESEARCH-Gandhinagar

Practical INDEX
Microprocessor Architecture and Programming
[Sub code: CE 502-N]
ENRL No. _______________________ BATCH: ___________
5th semester Computer Engineering Division:____ A.Y. 2023-24

Sr. Initial of
Title DATE Grade
No faculty
1. Architecture of 8085 microprocessor (Emu 8085).

2. Architecture of 8086 microprocessor (Emu 8086).


Perform Arithmetic Operations (Addition, Subtraction,
3.
Multiplication, Division, Inc, Dec) Operations.
To store , retrieve and memory transfer operations
4. (Perform Date Transfer Operations)
[RR, MR, RM] MM?
5. Perform 1’s Complement and 2’s complement.
Perform Logical and Shift/Rotate Micro Operations
6.
(AND, OR, NOT, XOR ) (SHL, SHR, ROL, ROR etc…).
7. Write ALP for Square and Cube of given number.
Write ALP to Copy array numbers from source to
8.
destination (Block Transfer).
9. Write ALP to Average of three numbers (8-bit).
10. Write ALP to Average of N numbers (8-bit).
Write ALP to find Largest and Smallest no. from array of
11.
data [11(a)-Largest, 11(b)-Smallest].
12. Write ALP to sort given elements in Ascending Order.
13. Write ALP to find Factorial of given no.
14. Write ALP to print Fibonacci series (e.g. 10 elements).
15. Write ALP to Search a number from given data array.
16. Write ALP to Display Array elements on screen.
17. Write ALP to find whether the number is Odd or Even.
18. Write ALP to Perform Addition of two Arrays.

CE-2023-24
MAP Practical-4 21BECE30295

Aim-To store , retrieve and memory transfer operations


Aim- Register to Register transfer
Code:

org 100h

MOV BL,32H

MOV AX,4295H

MOV CL,BL

MOV DL,BL

MOV BX,AX

MOV DX,AX

MOV CX, AX

MOV DS,AX

ret

LDRP-ITR Pg-No|
MAP 21BECE30295

Aim-Memory to Register transfer


Code
org 100h
MOV AX,3600H

MOV DS,AX
MOV BL,[1200H]
ret

LDRP-ITR Pg-No|
MAP 21BECE30295

Aim-Register to Memory transfer


Code

org 100H

MOV AL,45H

MOV AH,32H

MOV [2700H],AL

MOV [3200H],AH

MOV CX,[2700H]

ret

LDRP-ITR Pg-No|
MAP 21BECE30295

Aim-Immediate to Memory transfer


Code

org 100H

MOV [1700],2101H

MOV [3200],42H

Ret

LDRP-ITR Pg-No|
MAP PRACTICAL-5 21BECE30295

AIM:- Perform 1’s Complement and 2’s Complement.

A] 1’s Complement

org 100h

MOV AX,1711H

NOT AX

MOV DS,AX

ret

LDRP-ITR Page |
MAP PRACTICAL-5 21BECE30295

B]: 2’s Complement


org 100h

MOV AX,1711H

MOV DS,AX

MOV BL,[2000H]

ret

LDRP-ITR Page |
MAP Practical:-6 21BECE30295

AIM:- Perform Logical and Shift/Rotate Micro Operations (AND, OR, NOT, XOR ) (SHL,SHR,
ROL, ROR etc…)

1)-XOR Operations:-

org 100h
mov ax,[2500H]
mov bx,[3200H]
xor ax,bx
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

2) OR Operation

org 100h
mov ax,[2500H]
mov bx,[3200H]
or ax,bx
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

3) AND Operation

org 100h
mov ax,[2500H]
mov bx,[3200H]
and ax,bx
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

3) NOT Operation

org 100h
mov ax,[2500H]
not ax
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

4) SHL Operation

org 100h
mov ax,[2500H]
shl ax,cl
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

5) SHR Operation

org 100h
mov ax,[2500H]
shr ax,cl
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

6) ROL Operation

org 100h
mov ax,[2500H]
rol ax,cl
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

7) ROR Operation

org 100h
mov ax,[2500H]
ror ax,cl
ret

LDRP-ITR Pg-No|
MAP Practical:-6 21BECE30295

LDRP-ITR Pg-No|
MAP Practical-7 21BECE30295

Aim:-Write ALP for Square and Cube of given number


1)-Square

Code:-

Org 100h

mov si,500h

mov cl,[si]

mov ch,00h

inc si

l1:mov al,[si]

mov bl,al

mul al

mul bl

mov [si],al

inc si

dec cl

jnz l1

hlt

ret

LDRP-ITR Pg-No|
MAP Practical-7 21BECE30295

2)- Cube

Code:-

org 100h

mov si,500h

mov cl,[si]

inc si

l1:mov al,[si]

mul al

mov [si],al

inc si

dec cl

jnz l1

hlt

ret

LDRP-ITR Pg-No|
MAP Practitical-8 21BECE30295

AIM:- Write ALP to copy array numbers from source to destination(Block


Transfer)
Code:-

org 100h

mov si,501h

mov di,511h

mov cl,0ah

mov ch,00h

inc si

l1:mov al,[si]

mov [di],al

inc si

inc di

dec cl

jnz l1

hlt

ret

LDRP-ITR Pg-No|
MAP Practical-9 21BECE30295

AIM:- Write ALP to Average of three numbers (8-bit)


Code:-

org 100h

mov si,500h

mov di,511h

mov cl,03h

mov bl,ch

inc si

l1:add al,[si]

adc ah,00h

inc si

dec cl

jnz l1

div bl

mov [di],ax

hlt

ret

LDRP-ITR Pg-No|
MAP Practical-10 21BECE30295

Aim:-write ALP to Average of N numbers(8-bit)


Code:-

org 100h

mov si,501h

mov di,511h

mov cl,[si]

mov bl,ch

inc si

l1:add al,[si]

adc ah,00h

inc si

dec cl

jnz l1

div bl

mov [di],ax

hlt

ret

LDRP-ITR Pg-No|

You might also like