0% found this document useful (0 votes)
33 views20 pages

Laboratory Manual: L. D. College of Engineering

This is our college coa lab manual ?

Uploaded by

gshbsjdj32
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views20 pages

Laboratory Manual: L. D. College of Engineering

This is our college coa lab manual ?

Uploaded by

gshbsjdj32
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Sujal 220280116114

Government of Gujarat
L. D. College of Engineering

LABORATORY MANUAL
Information Technology Department

Semester IV

3140707 ComputerOrganizationandArchitecture

Year 2023-24

Name Sujal.
Enrollment no. 220280116114

L. D. College of Engineering
Ahmedabad -380015
Sujal 220280116045220280116114

Government of Gujarat
L. D. College of Engineering

This is to certify that Mr./Ms.

Enrollment No. of Semester IV Information


Technology has successfully completed the prescribed term
work/laboratory work of Computer Organization and
Architecture (3140707) course within the four walls of L. D.
College of Engineering. This is required as a partial
fulfillment of the said course of Gujarat Technological
University.

Date:

Course In-Charge HO
Sujal 220280116114

Exp. Page Initial of Course


Title Date
No. No. In-charge
17 Develop Assembly language program to logically
OR two numbers.
18 Develop Assembly language program to find Ex-OR
of two numbers.
19 Develop Assembly language program to multiply
two numbers by repeated addition method.
(5*4=5+5+5+5)
20 Develop Assembly language program to multiply
two positive numbers.
21 Develop Assembly language program to apply
Arithmetic shift left on number stored in memory.
22 Develop Assembly language program to accept two
numbers as inputs from the user, find the addition
and output the result into OUTR.
23 Develop Assembly language program to Compare
two words.
24 Develop Assembly language program to input and
pack two characters.
25 Develop Assembly language program to Service an
Interrupt.
Sujal 220280116114

Experiment 17
AIM: Develop Assembly language program to logically OR two
numbers using subroutine.

ORG 10
LDA A
BSA SUB
STA AD
LDA B
BSA SUB
AND AD
BSA SUB
STA RES
HLT

SUB, HEX 0
CMA
BUN SUB I

A, DEC 5
AD, HEX 0
B, DEC 4
RES, HEX 0
END
Sujal 220280116114

Memory:

Input Data: A = 0005, B = 0004


Output Data: RES = 0005
Sujal 220280116114

Experiment 18

AIM: Develop Assembly language program to find Ex-OR of


two numbers.

LDA Y
CMA
AND X
CMA
STA TMP
LDA X
CMA
AND Y
CMA
AND TMP
CMA
STA Z
HLT
X, DEC 5
Y, DEC 4
Z, HEX 0
TMP, HEX 1
Sujal 220280116114

Memory:

Input Data: X = 0005, Y = 0004


Output Data: Z = 0001
Sujal 220280116114

Experiment 19
AIM Develop Assembly language program to multiply two
numbers by repeated addition method. (5*4=5+5+5+5)

ORG 100
LDA X
STA PTR
CLA
LOP, ADD PTR
ISZ NBR
BUN LOP
STA MUL
HLT

X, DEC 5
PTR, HEX 0
NBR, DEC -4
CTR, HEX 0
MUL,
END
Sujal 220280116114

Memory:

Input Data: X = 0005,


Output Data: MUL = 0014
Sujal 220280116114

Experiment 20
AIM Develop Assembly language program to multiply two
positive numbers.

ORG 100
LOP, CLE
LDA Y
CIR
STA Y
SZE
BUN ONE
BUN ZRO
ONE, LDA X
ADD P
STA P
CLE
ZRO, LDA X
CIL
STA X
ISZ CTR
BUN LOP
HLT
CTR, DEC -8
X, DEC 5
Y, DEC 5
P,
END
Sujal 220280116114

Memory:

Input Data: X = 0005, Y = 0005


Output Data: P = 0019
Sujal 220280116114

Experiment 21
AIM-Develop Assembly language program to apply
Arithmetic shift left on number stored in memory

ORG 10
LDA X
CLE
SPA
CME
CIL
STA Y
HLT
X, DEC 5
Y,
END

Memory:

Input Data: X = 0005,


Output Data: Y = 000A,
Sujal 220280116114

Experiment 22

AIM - Develop Assembly language program to accept two


numbers as inputs from the user, find the addition and
output the result into OUTR.

ORG 100
CIF, SKI
BUN CIF
INP
STA NM1
CIF2, SKI
BUN CIF
INP
STA NM2
LDA NM1
ADD NM2
STA RES
COF, SKO
BUN COF
OUT
HLT
NM1,
NM2,
RES,
END
Sujal 220280116114

Memory:

Input Data: NM1 = 0005, NM2 = 0005


Output Data: Y = 000A,
Sujal 220280116114

Experiment 23
AIM - Develop Assembly language program to Compare
two words.

ORG 100
LDA WD1
CMA
INC
ADD WD2
SZA
BUN UEQ
BUN EQL
UEQ, LDA A
STA RES
HLT
EQL, LDA B
STA RES
HLT
WD1, -
WD2, -
A, DEC 0
B, DEC 1
RES,
END
Sujal 220280116114

Memory:

Input Data: WD1 = 0001, WD2 = 0002


Output Data: ,RES =0000

Memory:

Input Data: WD1 = 0001, WD2 = 0001


Output Data: RES = 0001,
Sujal 220280116114

Experiment 24
AIM - Develop Assembly language program to input and
pack two characters.

ORG 100
FST, SKI
BUN FST
INP
OUT
BSA SH8
SCD, SKI
BUN SCD
INP
OUT
HLT
SH8, HEX 0
CIL
CIL
CIL
CIL
CIL
CIL
CIL
CIL
AND MSK
BUN SH8 I
MSK, HEX FFF0
END
Sujal 220280116114
Sujal 220280116114

Experiment 25
AIM - Develop Assembly language program to Service an
Interrupt.

ORG 100
FIRST, BUN ISR
CMA
ION
ADD X
STA Z
LDA Y
ISR, STA LAC
CIR
STA LE
LDA P
STA Q
LDA LE
CIL
LDA LAC
ION
BUN FIRST I
HLT
X, DEC 5
Y, DEC 10
Z, DEC 0
LAC, DEC 0
LE, DEC 0
P, DEC 0
Q, DEC 0
Sujal 220280116114

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy