Question: Pep/9 Assembly Language Question: CONTINUED: Consider the following programming assignment. Write a Pep/9 assembly language program that reads positive integers (at least one) then a

Pep/9 Assembly Language Question:

Pep/9 Assembly Language Question: CONTINUED: Consider the following programming assignment. Write a

CONTINUED:

Pep/9 assembly language program that reads positive integers (at least one) then

Consider the following programming assignment. Write a Pep/9 assembly language program that reads positive integers (at least one) then a negative integer. When the negative integer is read the program outputs the difference between the largest and the smallest positive number. Example input 6293 -1 Expected output 7 A student's solution to this assignment is shown below. Identify the errors Line deci largest,d deci smallest,d top: deci temp,d 4 breq done ldwa largest, d cpwa temp, d brlt skip stwa largest,d skip:ldwa smallest, d 10 cpwa temp, d brgt skip2 stwa smallest,d 12 13 skip2:br top 14done: ldwa largest,d 15 16 suba smallest,d deco largest,d Consider the following programming assignment. Write a Pep/9 assembly language program that reads positive integers (at least one) then a negative integer. When the negative integer is read the program outputs the difference between the largest and the smallest positive number. Example input 6293 -1 Expected output 7 A student's solution to this assignment is shown below. Identify the errors Line deci largest,d deci smallest,d top: deci temp,d 4 breq done ldwa largest, d cpwa temp, d brlt skip stwa largest,d skip:ldwa smallest, d 10 cpwa temp, d brgt skip2 stwa smallest,d 12 13 skip2:br top 14done: ldwa largest,d 15 16 suba smallest,d deco largest,d

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!