Question: Use CodeWarrior's Assembly language to write this program. The array sample contains eight 8-bit signed binary mumbers (integers) as shown below. Write a program which

 Use CodeWarrior's Assembly language to write this program. The array sample

Use CodeWarrior's Assembly language to write this program.

The array sample contains eight 8-bit signed binary mumbers (integers) as shown below. Write a program which stores the positive numbers in the array pelementa, stores the number of the positive numbers in the variable paumber, and computes the sum of the negative numbers to be stored in the variable nsun. Note that a zero is neither positive mor negative. Your program must use a single loop. Your program should work for any 8 numbers stored in samples. RAMStart=80800 and ROMStart=34000. samples DCB $80,845,830,810, 300,300,999,566 pelementa DS.B 8 pnumber DS.B 1 nsum DS.B ! 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!