0% found this document useful (0 votes)
87 views6 pages

MOV BX, 0122H MOV CX, 0127H Add BX, CX END

This document contains an assembly language programming experiment involving 7 problems. The problems include adding 16-bit and 8-bit numbers stored in registers, subtracting 8-bit numbers in registers, adding numbers stored in memory addresses and storing the result in another memory address, multiplying and dividing 16-bit numbers, transferring a block of 16-bit data from one memory location to another, and displaying the Fibonacci series in memory locations.
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)
87 views6 pages

MOV BX, 0122H MOV CX, 0127H Add BX, CX END

This document contains an assembly language programming experiment involving 7 problems. The problems include adding 16-bit and 8-bit numbers stored in registers, subtracting 8-bit numbers in registers, adding numbers stored in memory addresses and storing the result in another memory address, multiplying and dividing 16-bit numbers, transferring a block of 16-bit data from one memory location to another, and displaying the Fibonacci series in memory locations.
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/ 6

Exp-13

Name: k.mohana krishna

Reg.no:15MIS0407

Slot: L7+L8

Course:Swe1003

Exp: Assembly language programming for 8086

Faculty: prof.swarna priya

1. Write an ALP for adding two 16 bit numbers 0122H, 0127H stored in registers B and C
respectively.

MOV BX, 0122H


MOV CX, 0127H
ADD BX, CX
END

2. Write an ALP for adding two 8 bit numbers 02H, 1BH stored in registers B and C.

MOV BX, 02H


MOV CX, 1BH
ADD AX, CX
END
3. Write an ALP for subtracting two 8 bit numbers stored in registers

MOV BX.08H
MOV CX, 02H
MOV AX, BX
SUB AX, CX
HLT
4. Write an ALP for storing the 16 bit data in memory address 1000H and 1001H. Then
perform addition of these two numbers and store the result in the memory address 1002.

MOV SI, 1000H


MOV AX, [SI]
INC SI
MOV BX, [SI]
ADD AX, BX

INC SI
MOV [SI], AX
END

5. Write an ALP for performing multiplication and division of 2 16 bit numbers.


F OR MU LTI PI CATION

MOV AX, 04H


MOV BX, 08H
MUL BX
END
FOR DI VI SION

MOV AX, 08H


MOV BL, 02H
DIV BL
END

6. Write an ALP for transferring a block of ten 16 bit data from memory address starting at
1000 to a memory location 3000.

MOV SI, 1000H


MOV DI, 3000H
MOV CX, 10H
AGAIN: MOV AX, [SI]
MOV [DI], AX
INC SI
INC DI
DEC CL
JNZ AGAIN
END

7. Write an ALP to display 13 numbers of the fibonacci series in a memory location

MOV SI, 1000H


MOV CL, 10H
MOV [SI], 00H
MOV AX, [SI]
INC SI
DEC CL
MOV [SI], 01H
MOV BX, [SI]
INC SI
DEC CL
L1: ADD AX, BX
MOV DX, AX
MOV [SI], AX
MOV AX, BX
MOV BX, DX
INC SI
DEC CL
JNZ L1
END

You might also like