1. Refer to the following data ,with words properly defined in reverse sequence :
VALUE1 DW 0153H
DW 1624H
VALUE2 DW 0328H
DW 3C44H
RESULT DW 0
DW 0
DW 0
DW 0
a) Code the instructions to add the following : (1) the word VALUE1 to the word VALUE2; (2) the doubleword beginning at VALUE1 to the doubleword at VALUE2
b) Explain the effect of the following related instructions:
STC
MOV DX,VALUE1
ADC DX, VALUE2
c) Code the instructions to multiply (MUL) the following: 1) the word VALUE1 by the word VALUE2; 2) the doubleword beginning at VALUE1 by the word VALUE2. Store the product in RESULT
d) Code the instructions to divide (DIV) the following : 1) the word VALUE1 by 36; 2) the doubleword beginning at VALUE1 by the word VALUE2
2. Code two macro definitions that perform multiplication; a) MULTBYTE is to generate code that multiplies a byte by a byte; a) MULTWORD is to generate code that multiplies a word by a word. Include the multiplicands and multipliers as dummy arguments in the macro definition. Test the execution of the macros with the small program that also defines the required data fields.
3. Define a 5-byte field containing the hex value C9CDCDCDBB. Use MOVSB to duplicate this field 20 times into a 100 byte area, and display the result.
4. Write a program to input two seven–digit numbers in response to the prompts “Enter the first number” and “Enter the second number.” Add them together and display the sum with the message “ The total sum is;”