Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note: The program should be written in assembly code for emu8086 and there should be a proper explanation of the code. Question: Your task is

Note: The program should be written in assembly code for emu8086 and there should be a proper explanation of the code.

Question: Your task is to find duplicate numbers and print them in reverse order. At first, take two 16 bit variables and store 4 digit 16-bit decimal numbers in each of them. Now you have to combine the two numbers and print all the 8 digits in the same line. Next, you have to find the duplicate numbers in this 8 digit number (traverse left to right) and print them in reverse order in new lines. If there are no duplicates, then print No duplicates.

Sample Input 01: Var 1 = 1684 Var 2 = 3681 So by combining them we get 16843681. You now have to use a suitable data structure where you can store this value

Sample Output 01: 1 6 8 4 3 6 8 18 8 6 1

Explanation: The numbers that have duplicates are 6, 8, and 1. Now from left to right, 1 appears first, then 6, and then 8. So now we reversely print them as 8 then 6 and then 1.

Sample Input 02: Var 1 = 7337Var 2 = 7989 So by combining them we get 73377989. You now have to use a suitable data structure where you can store this value

Sample Output 02: 7 3 3 7 7 9 8 9 9 9 3 7

Explanation: The numbers that have duplicates are 3, 7, and 9. Now from left to right, 7 appears first, then 3, and then 9. So now we reversely print them as 9 then 3 and then 7.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

Students also viewed these Databases questions

Question

If z = xy3 + x ln y2, find zxy |(1, 2).

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago