0% found this document useful (0 votes)
5 views1 page

Sub Program Questions

The document outlines three programming tasks involving assembly language. The first task requires writing a subprogram to compute the cube of a sum, while the second and third tasks involve creating assembly programs for specific mathematical operations on variables stored in designated memory locations. Each task emphasizes the use of subprograms to implement high-level statements involving arithmetic operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Sub Program Questions

The document outlines three programming tasks involving assembly language. The first task requires writing a subprogram to compute the cube of a sum, while the second and third tasks involve creating assembly programs for specific mathematical operations on variables stored in designated memory locations. Each task emphasizes the use of subprograms to implement high-level statements involving arithmetic operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q1) Write a Sub Program to be stored from 50th Memory location to

perform Acc = Acc3

Then implement the following high-level statement using your sub


program where X, Y and Z variables are stored in 20, 21 and 22 memory
locations.

Z = (X3 + Y3)3

Q2) Write an assembly program for the following high-level statement


using a suitable sub program where P, Q, R variables are stored in 10, 11
and 12 memory locations.

R = (P4 + 4Q2)8

Q3) Write an assembly program for the following high-level statement


using a suitable sub program where P, Q, R variables are stored in 10, 11
and 12 memory locations.

R = (8P3 – Q6)9

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