Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a full assembly language program that takes an array of 1 0 signed numbers ( The user enter it when the program run )

Write a full assembly language program that takes an array of 10 signed numbers (The user enter it when the program run)(consists of positive and negative values).(My Name = GEGE, ID =123233344)(You are not allowed to use Stack or Loop Instructions use JMP instead of)
Array =[1,-2,3,-4,5,-6,7,-8,-9,10]
1. The program must count the negative values and print the total sum of the absolute values of the negative numbers. (i.e.: if you have -3,-5,-1, then the program must print count =3 as the total number of negative values and then prints the sum =+9) if your answer does not compute correctly due to hex values then write in a comment at the end of the code the correct answer and the corresponding hex value you got on screen (i.e., if you got N on screen then it means that your sum was =4Eh =78 decimal )
2. The program must count the positive numbers and print the count and positive numbers separated by a comma (,)(i.e.: if you have 2,5,7 in the array then you should print them on screen like count =3 values =2,5,7)
3. Print my name and my university ID as two arrays each one on separate lines.
4. print my university ID as complement values(Use 2's complement)
The Output must be like this :
#Negative =---
Sum =---
#Positive =---
Positive-Numbers =-,-,-,-....
My-Name =---
My-ID =---
Complemented-ID =----

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

1. In what ways has flexible working revolutionised employment?

Answered: 1 week ago