Question: 25. Consider the following assembly language instructions, with the data definitions (and locations) given. Fill in the blanks for the code snippet (only give information

25. Consider the following assembly language instructions, with the data definitions (and locations) given. Fill in the blanks for the code snippet (only give information for the destination operands). Assume word_array is located at offset 0020h (15 pts) .DATA word_array DW 000EH 000FH 0010H 0011H ; ....code segment MOV BX, offset word_array; will contain MOV DX, word_array; will contain MOV SI, BX; will contain INC SI; will contain MOV AX, [SI] ; will contain INC SI; will contain MOV CX, [SI]; will contain 26. Assume the data segment contains the following data, given as ASCII values (hint - this is a character type of code fragment, not arithmetic)...offsets from the start of the data segment are given. What does the following code do, i.e. output? (8 pts) ! r n e u t f S f O O S T d S Data segment: Offset 001 0h: Offset 0020h: Offset 0030h: a i O t 1 S m n u i 1 g 1 r t S S h 1 O i o S N (code and other stuff...) MOV SI, 003Eh MOV CX, 0016h Output_loop: moval, [SI] Call writestring ;outputs character in the AL register to the screen ; and moves the cursor position 1 space to the right DEC CX DEC SI DEC SI JCXZ Done JMP Output_loop (rest of code) (23) ... 25. Consider the following assembly language instructions, with the data definitions (and locations) given. Fill in the blanks for the code snippet (only give information for the destination operands). Assume word_array is located at offset 0020h (15 pts) .DATA word_array DW 000EH 000FH 0010H 0011H ; ....code segment MOV BX, offset word_array; will contain MOV DX, word_array; will contain MOV SI, BX; will contain INC SI; will contain MOV AX, [SI] ; will contain INC SI; will contain MOV CX, [SI]; will contain 26. Assume the data segment contains the following data, given as ASCII values (hint - this is a character type of code fragment, not arithmetic)...offsets from the start of the data segment are given. What does the following code do, i.e. output? (8 pts) ! r n e u t f S f O O S T d S Data segment: Offset 001 0h: Offset 0020h: Offset 0030h: a i O t 1 S m n u i 1 g 1 r t S S h 1 O i o S N (code and other stuff...) MOV SI, 003Eh MOV CX, 0016h Output_loop: moval, [SI] Call writestring ;outputs character in the AL register to the screen ; and moves the cursor position 1 space to the right DEC CX DEC SI DEC SI JCXZ Done JMP Output_loop (rest of code) (23)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
