NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

LABORATORY:1
1. Load the memory address 2100H with 0x45 and transfer it
to accumulator. Copy accumulator to register B, C, D, E, H
and L.
MVI A, 45H
STA 2100H
MOV B, A
MOV C, A
MOV D, A
MOV E, A
MOV H, A
MOV L, A
HLT
2. Load the accumulator with 0x45 and save accumulator at
memory location 2105H.
MVI A, 45H
STA 2105H
HLT
3. Write instructions to load 0x65 in register C and 0x92 in
the accumulator. Store the content of both register at
memory location 2122H and 2212H.
MVI C, 65H
MVI A, 92H
STA 2212H
MOV A, C
STA 2122H
HLT
4. Write an assembly language program for the adding of two
8-bits numbers stored at memory location 2100H and 2101H
respectively. Store the result at memory location 2102H.
MVI A, 10H
STA 2100H
MOV B, A
MVI A, 11H
STA 2101H
ADD B
STA 2102H
HLT
5. Write an ALP to add two sixteen bit numbers and store 16-
bit result.
LDA 2050H
MOV B,A
LDA 2052H
ADD B
STA 3050H
LDA 2051H
MOV B,A
LDA 2053H
ADC B
STA 3051H
HLT
6. Subtract two 8-bit numbers at 2100H and 2101H. Save the
result at location 2102H.
LDA 2100H
MOV B,A
LDA 2101H
SUB B
STA 2102H
HLT
7. Write a program to subtract two 16-bit numbers and store
the result.
5CE-B Batch 2
LDA 2050H
MOV B,A
LDA 2052H
SUB B
STA 3050H
LDA 2051H
MOV B,A
LDA 2053H
SBB B
STA 3051H
HLT
8. Write ALP to find one’s complement of data 0x55 stored at
memory location 2100H.
LDA 2100H
CMA
HLT
9. Write an ALP to find two’s complement of data 0x45 stored
at memory location 2100H.
LDA 2100H
CMA
ADI 01
HLT
LABORATORY:2
1.Write a program to multiply two 8 bit data stored at location 2101H and 2102H.
LHLD 2101H
MVI A,00H
START: ADD H
DCR L
JNZ START
STA 2103H
hlt
2.Write a program to find largest and smallest numbers in block of array from 2100H to 2109H. Store the result at location 210AH and 210BH.
lxi h,2100h
mov b,m
mov c,m
mvi d,0ah
LOOP: mov a,m
cmp b
jc MIN
mov b,a
MIN: cmp c
jnc SKIP
mov c,a
SKIP: inx h
dcr d
jnz LOOP
lxi h,210ah
mov m,b
inx h
mov m,c
hlt

3. Write an ALP to sort array of 10 elements from 2100H in ascending order.
START: lxi h,20ffh
mvi d,00h
mvi c,0ah
dcr c
inx h
CHECK: mov a,m
inx h
cmp m
jc NEXT
jz NEXT
mov b,m
mov m,a
dcx h
mov m,b
inx h
mvi d,01h
NEXT: dcr c
jnz CHECK
mov a,d
rrc
jc START
hlt
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.