Question: Using Edsim51 Assembly language 1. Two BCD numbers are stored in two memory locations NUMI and NUM2 in code memory (ROM). A list of numbers

 Using Edsim51 Assembly language 1. Two BCD numbers are stored in

Using Edsim51

Assembly language

1. Two BCD numbers are stored in two memory locations NUMI and NUM2 in code memory (ROM). A list of numbers is stored starting at memory location LIST in code memory (ROM). The list is terminated by character FFH. Write a program to perform the following operations and output the result to P2. Value in R7 Operation 0 Count the number of values excluding the terminating character FFH. Output the count on P2. Otherwise Add and Convert the result to BCD. Output the sum on P2

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!