Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assambly language test x86. 25. Consider the following assembly language instructions, with the data definitions (and locations) given. Fill in the blanks for the code

Assambly language test x86.image text in transcribed

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

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago