Professional Documents
Culture Documents
QUESTION 1
Create ONE project using an Assembly Language code for the following situation.
i) Welcoming wishes for users of your program. It should greet with any four (4) strings of BYTE
values in an array that expressing current situation in your workspace. All strings should be
present in different colors. Repeat the output 3 times.
ii) Create a multiplication program for 5 integers using style no 2. Print the output as a decimal.
END OF QUESTIONS
ANSWER
THE CODING :
TITLE MultiplyColorStyle2
INCLUDE Irvine32.inc
.data
.code
main PROC
L1:
call SetTextColor
mov edx, OFFSET welcomeStrings
call WriteString
call Crlf
mov edx,OFFSET str1
call WriteString
call Crlf
mov edx,OFFSET str2
call WriteString
call Crlf
mov edx,OFFSET str3
call WriteString
call Crlf
add eax, 4
loop L1
mov eax, x
cdq
imul y
imul z
imul n
imul t
mov Product, eax
main ENDP
END main
THE OUTPUT :