Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In assembly language, kip irvine visual studios 2013... Ask the user to input th

ID: 671521 • Letter: I

Question

In assembly language, kip irvine visual studios 2013... Ask the user to input the number of elements of a character array (less than 50 elements). Ask the user to enter a character that he wants to search in the array. Then ask him to input the characters one by one to fill the array. For this use indirect addressing. Then your program has to search for the desired character in your array. Again, use indirect addressing. If the character is found, display the following message: "Found the character x at position y in the array." Careful with the position count. The array starts from zero. ts from zero. Of course, replace x and y with the corresponding character/number. If it is not found display: "The character was not found."

Explanation / Answer

Indirect Memory Addressing

This addressing mode utilizes the computer's ability of Segment:Offsetaddressing. Generally, the base registers EBX, EBP (or BX, BP) and the index registers (DI, SI), coded within square brackets for memory references, are used for this purpose.

Indirect addressing is generally used for variables containing several elements like, arrays. Starting address of the array is stored in, say, the EBX register.

The following code snippet shows how to access different elements of the variable.

The MOV Instruction

We have already used the MOV instruction that is used for moving data from one storage space to another. The MOV instruction takes two operands.

Syntax

The syntax of the MOV instruction is

The MOV instruction may have one of the following five forms

Please note that

The MOV instruction causes ambiguity at times. For example, look at the statements

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote