0% found this document useful (0 votes)
9 views5 pages

Cube

The document provides a README for a project that includes Assembly language programs for calculating the square and cube of a number using the 8051 microcontroller in Keil software. It outlines the aim, required apparatus, algorithm, and the respective programs for both calculations. The results confirm that the square and cube of the given data can be successfully computed.

Uploaded by

snithya
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)
9 views5 pages

Cube

The document provides a README for a project that includes Assembly language programs for calculating the square and cube of a number using the 8051 microcontroller in Keil software. It outlines the aim, required apparatus, algorithm, and the respective programs for both calculations. The results confirm that the square and cube of the given data can be successfully computed.

Uploaded by

snithya
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

10/11/2025, 09:49 SQUARE-AND-CUBE-OF-A-NUM-BER/README.

md at main · vishwa2005vasu/SQUARE-AND-CUBE-OF-A-NUM-BER

vishwa2005vasu SQUARE-AND-CUBE-OF-A-NUM-BER

Code Pull requests Actions Projects Wiki Security Insights

main SQUARE-AND-CUBE-OF-A-NUM-BER / [Link]

vishwa2005vasu Update [Link] a038322 · now

96 lines (56 loc) · 1.76 KB

Preview Code Blame Raw

SQUARE AND CUBE OF A NUMBER

8051 Square Program

Name: Vishwa vasu R

Reg no: 212222040183

AIM
To write and execute an Assembly language program for finding the square of a given
data using 8051 microcontroller in Keil software.

APPARATUS REQUIRED
Personal computer
Keil μVision IDE

ALGORITHM
1. Enter the Assembly language program.
2. Provide the input value to Port 0 (P0).
3. Execute the program.
4. The output square value is stored in Port 2 (P2).
[Link] 1/5
10/11/2025, 09:49 SQUARE-AND-CUBE-OF-A-NUM-BER/[Link] at main · vishwa2005vasu/SQUARE-AND-CUBE-OF-A-NUM-BER

PROGRAM

MOV A,P0

MOV R0,A

MOV B,R0

MUL AB

MOV P2,A

END

OUTPUT

[Link] 2/5
10/11/2025, 09:49 SQUARE-AND-CUBE-OF-A-NUM-BER/[Link] at main · vishwa2005vasu/SQUARE-AND-CUBE-OF-A-NUM-BER

RESULT

Thus, the square of the given data is calculated using 8051 Keil.

8051 Cube Program

AIM
To write and execute an Assembly language program for finding the cube of a given
data using 8051 microcontroller in Keil software.

APPARATUS REQUIRED
Personal computer
Keil μVision IDE

ALGORITHM
1. Enter the Assembly language program.
2. Provide the input value.
3. Execute the program.
4. The output cube value is stored in a memory location.

[Link] 3/5
10/11/2025, 09:49 SQUARE-AND-CUBE-OF-A-NUM-BER/[Link] at main · vishwa2005vasu/SQUARE-AND-CUBE-OF-A-NUM-BER

PROGRAM

MOV A, P0
MOV B, A
MUL AB
MOV R0, A
MOV A, R0
MOV B, P0
MUL AB
MOV P2, A
END

OUTPUT

[Link] 4/5
10/11/2025, 09:49 SQUARE-AND-CUBE-OF-A-NUM-BER/[Link] at main · vishwa2005vasu/SQUARE-AND-CUBE-OF-A-NUM-BER

RESULT
Thus, the cube of the given data is calculated using 8051 Keil.

[Link] 5/5

You might also like