In: Computer Science
Assume that 20 bytes of Packed BCD data is present in a data memory at location 0x300 to 0x313. You have to write an assembly program that will display data on a two seven segment displays one connected to Port A and other connected to Port B using loops. You also have to analyze data if the data is equal to 0x22 then start storing data bytes at corresponding memory address 0x400 to 0x413 in reverse order i.e. if the data at 0x300 is 0x95 then it must be stored at corresponding memory location 0x400 as 0x59. Stop the storing of data when you find data byte equal to 0x55. Draw block diagram that will clearly show the pin connection between seven segment display and Microcontroller port. Also draw flow chart for your software.