Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The array sample contains eight 8-bit signed binary numbers (integers) as shown below. Write a program which stores the positive numbers in the array pelements,

image text in transcribed

The array sample contains eight 8-bit signed binary numbers (integers) as shown below. Write a program which stores the positive numbers in the array pelements, stores the number of the positive numbers in the variable pnumber, and computes the sum of the negative numbers to be stored in the variable nsum. Note that a zero is neither positive nor negative. Your program must use a single loop. Your program should work for any 8 numbers stored in samples. RAMStart=$0800 and ROMStart=$4000. samples DC.B pelements DS.B pnumber DS.B nsum DS.B $80,$45,$30,$10, $00,$CC,$99,$66 8 1 1 Assemble the program and execute it in the single-step mode with the contents of the array and variables displayed in the memory window. Do screen-captures (the source, memory and register windows) right before the first instruction is executed, right after the 4th number is processed, and right after the last instruction except rts is executed. Submit a single PDF file including the list file of your code and the 3 sets of screen-captures

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_2

Step: 3

blur-text-image_3

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

What is the law of Prgnanz and how can it be illustrated?

Answered: 1 week ago

Question

Write a java program to print first 100 fibonacci numbers?

Answered: 1 week ago

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago