Please Code in Assembly Language
Code solution using the provided template AL_Template_Irvine32.asm located towards the bottom of the question. Debug programs with Visual Studio2017/19. Please add single line or block comments explaining the purpose or functionality of your code statements.
Draw Text Colors
Write a program that displays the same string in four different colors, using a loop. Call the Set-TextColor procedure from the book’s link library. Any colors may be chosen, but you may find it easiest to change the foreground color.
AL_Template_Irvine32.asm
; Program Description: Describe with a short paragraph what your
; program does and its purpose. Explain in general
; terms the expected inputs and output result.
INCLUDE Irvine32.inc ;Use Irvine32 library.
.const
;Declare constants here.
.data
;Declare variables here.
.code
main PROC
;Write your code here.
exit
;Exit program.
main ENDP
;Procedures go here.
END main
INCLUDE Irvine32.inc
.data
str3 BYTE "THello...World.",0
.code
main PROC
MOV ECX, 4
MOV EAX, green + (white*16)
MOV EDX, OFFSET str3
L1:
call SetTextColor ;setting
color of text
call
WriteString
call Crlf
INC EAX
LOOP L1
call WaitMsg
exit
main ENDP
END main
Get Answers For Free
Most questions answered within 1 hours.