Question

In: Computer Science

1. Given the data definitions, W DW 1234 A DB 23 B DB -12 2. what...

1. Given the data definitions,
W DW 1234
A DB 23
B DB -12

2. what is displayed by the DOS display string call
mov dx, OFFSET Msg
mov ah, 9h
int 21h

Solutions

Expert Solution

Greetings!!

mov dx, OFFSET Msg

mov ah, 9h

int 21h

This code is used to diplay the content of the string named Msg on to the screen.

Complete code:

org 100h

.data              ;data segment

W DW 1234    ;declare 2 bytes in memory with variable name W and initial value of 1234

A DB 23          ;declare 1 byte in memory with variable name A and initial ;value of 23

B DB -12        ;declare 1 byte in memory with variable name B and initial ;value of -12

Msg db "Good Morning!!$"    ;declare a string with name Msg and initialized with ;message Good Morning!!

.code                                       ;code segment

mov ax,@data

mov ds,ax     

mov dx, OFFSET Msg          ;load the address of the string Msg into the register DX ;for displaying to the screen using DOS system call

mov ah, 9h                             ;parameter for system call for displau=ying the string. ;Each DOS service need a parameter loaded into the AH register before the system ;call   

int 21h                                    ;calling DOS system call for displaying the string

hlt                                           ;terminate the execution

ret

Screenshots:

Hope this helps


Related Solutions

var1 db “b, “ca”, 0 var2 db 3, 0, 0, 0 var3 times 2 dw 012h...
var1 db “b, “ca”, 0 var2 db 3, 0, 0, 0 var3 times 2 dw 012h mov eax, var3 mov ebx, var1 sub eax, 4 add ebx, [eax] mov dword [ebx], 42 Show work on each step. Show final memory starting at "var1" on a Little-Endian Machine.
DB 1- What is the time value of money? DB 2- What is the nature of...
DB 1- What is the time value of money? DB 2- What is the nature of interest? Distinguish between “simple interest” and “compound interest.” DB 3- What are the primary characteristics of an annuity? Differentiate between an “ordinary annuity” and an “annuity due.
Given two languages A and B, let A/B denote the language {w | w x ∈...
Given two languages A and B, let A/B denote the language {w | w x ∈ A for some x ∈ B}. Show that if A is a context-free language and B is a regular language, then A/B is a context-free language. hint (construct PDAs)
3. Suppose the demand for labor is given by LD = 12 – 1/5 W (or...
3. Suppose the demand for labor is given by LD = 12 – 1/5 W (or W = 60 – 5L), and the domestic supply of labor is given by LS = W – 6 (or W = L + 6) a) Calculate the market-clearing quantity of labor and the wage and graph (and label) everything: L* = ____________ W* = ___________ b) Suppose that newly arriving immigrants have LS = 2W – 12 and are as productive as domestic...
What is the difference between Stereochemistry & Regiochemistry w/ examples and definitions?
What is the difference between Stereochemistry & Regiochemistry w/ examples and definitions?
23. Given a = 5, b = 4, c = 2, evaluate the following: a) a//c...
23. Given a = 5, b = 4, c = 2, evaluate the following: a) a//c b) a % b c) b **c d) b *= c 27. Given the following var_1 = 2.0 var_2 = "apple" var_3 = 'orange' var_4 = 4 Predict the output of the following statements or indicate that there would be an error. a) print (var_1) b) print (var_2) c) print ("var_3") d) print (var_1 / var_4) e) print (var_4 + var_3) f) print (var_2...
Given the following grouped frequency distribution Data Frequency 50 - 54 12 55 - 59 23...
Given the following grouped frequency distribution Data Frequency 50 - 54 12 55 - 59 23 60 - 64 11 65 - 69 8 70 - 74 5 75 - 79 7 80 - 84 3 85 - 89 1 90 - 94 1 Find the mean (give you answer to one decimal) = Find the standard deviation (give your answer to two decimals) = What is the shape of this distribution? Your answer will be hand graded.
Given the data below for the reaction, 2 A + 2 B + 4 C =>...
Given the data below for the reaction, 2 A + 2 B + 4 C => D + E + 3 F, Experiment Initial conc of A, mol/L Initial conc of B, mol/L Initial conc of C, mol/L Initial rate, mol/L.s 1 0.1 0.2 0.4 2 x 10-3 2 0.2 0.2 0.4 4 x 10-3 3 0.3 0.4 0.4 6 x 10-3 4 0.4 0.6 0.2 2 x 10-3 Calculate the value of k to 3 significant figures.
The question is asking for definitions of these. :) And there is no equation given, what...
The question is asking for definitions of these. :) And there is no equation given, what is the formula to find the Equilibrium price/ quantity? G. SOLVING FOR EQUILIBRIUM PRICE AND QUANTITY 1) The standard demand and supply functions (1) Calculating equilibrium price and quantity (2) Illustration of equilibrium price and quantity 2) The inverse demand and supply functions (1) Calculating equilibrium price and quantity (2) Illustration of equilibrium price and quantity
Given the following data X 12 5 6 8 11 23 14 16 15 5 Y...
Given the following data X 12 5 6 8 11 23 14 16 15 5 Y 6 10 6 5 2 4 20 5 6 10 a. Is there a linear correlation between X and Y? Explain your answer. b. What is the regression question? c. If x value is 37, what is the y value?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT