/Assembly-lab3

Assembly program to search for an element in a 10 words list

Primary LanguageAssembly

Assemply-lab3

Assembly program to search for an element in a 10 words list.

We have a DATA array like this: DATA DC.W 13,15,14,68,-3,20,85,30,1,19. Assume that the search key is stored in memory location labeled KEY and the output is the index of the element will be stored in the memory location labeled OINDEX. Show the output stored in the memory location OINDEX after executing the search for the given keys: 1, 6, 9, 15, 68, 13, 19, 30.

Key = 1:

image

Key = 6:

image

Key = 9:

image

Key = 15:

image

Key = 68:

image

Key = 13:

image

Key = 19:

image

Key = 30:

image