Question: The following program in C displays on 7-segment display the decimal digits (0 to 9) in Indian numeral format: void main() { int nums[] =

The following program in C displays on 7-segment display the decimal digits (0 to 9) in Indian numeral format: void main() { int nums[] = {0x80,6,0x31,0x72,0x79,0x3f,7,0x3e,0x37,0x67} ; int i; TRISA=0x00; //Set port A as output, used for segment select TRISD=0x00; //Set port D as output, used for data output PORTA=0x0F; // 2 of the 7-segments will be ON. while(1) //Infinite loop II { for(i=0;i<10;i++) { portD = nums[i]; // Use the index value as array index, to get // the corresponding value delay_ms(1000); } // 1 sec delay } } q) Write your own Assembly program equivalent to the above program and implement it.

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!