Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

22. What is the result after the following code fragment executes? (8 pts) 5 3 AX= Ht ft DB Ht in DB ; code segment

image text in transcribed

22. What is the result after the following code fragment executes? (8 pts) 5 3 AX= Ht ft DB Ht in DB ; code segment MOV BL, 12 BX= MOV AL, ht_ft MUL BL CX= MOV DL, ht in DX = MOV DH, 00h ADD AX, DX 23. Consider the following program..... .DATA New word DW 1C5Fh .CODE Main PROC mov ax, si mov ax, 0005h add ax, new_word mov bx, 00ABh Main ENDP END Main Circle all of the problems from the list below that apply to the code. A. The add instruction will not execute B. The program will not exit cleanly C. We did not load the address of the data segment D. This is a useless program 24. (note that I didn't write this question, but feel it's somewhat simple and good for a laught. I did put some editorial comments for your reading pleasure...) For some reason you have been writing assembly for the Russian government (note: that's gotta be a great gig), and you're one multiplication away from ensuring that Garfield the Cat will be the next president of the United States (note: Garfield would certainly be an upgrade from recent presidents / presidential candidates). However, the mighty Vladimir Putin himself has coded this multiply (note: how did Putin ever learn assembly language???), and to alter it would be treason (note: time for a job change). Instead you must recalculate valid ranges for all other code to fit these 4 lines (note: that's a clever way of staying alive...). For what values of K will Vlad's code cooperate? Assume unsigned multiplication and that the code will assemble. (4 pts) MOV BX, 42h MOV AX, K MUL BX MOV Multiplication_Result, AX

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

KEY QUESTION Refer to columns 1 and 6 in the table for question

Answered: 1 week ago