Q1) Write a program in assembly language that define three variables X, Y and Z in the data segment then find the average of them and store the result in other variable name it AVG. X, Y, Z, and AVG are word (16 bits) data length.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
Q1) Write a program in assembly language that define three variables X, Y and Z in the
data segment then find the average of them and store the result in other variable name it
AVG.
X, Y, Z, and AVG are word (16 bits) data length.
Q2) Write an assembly program that check a string (array of characters defined in the
data segment) consist of 10 characters, to find how many capital letters in the array, then
save the result in another variable name it CAP.
NOTE:
• String means (array of characters).
• Ways to define string in data segment:
1. Strl DB " MIcroprocessor lab“
2. Strl DB 'M','I','c', 'r', 'o', 'p','r','o
T,'a','b'
Transcribed Image Text:Q1) Write a program in assembly language that define three variables X, Y and Z in the data segment then find the average of them and store the result in other variable name it AVG. X, Y, Z, and AVG are word (16 bits) data length. Q2) Write an assembly program that check a string (array of characters defined in the data segment) consist of 10 characters, to find how many capital letters in the array, then save the result in another variable name it CAP. NOTE: • String means (array of characters). • Ways to define string in data segment: 1. Strl DB " MIcroprocessor lab“ 2. Strl DB 'M','I','c', 'r', 'o', 'p','r','o T,'a','b'
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning