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.
6.) Random Strings
Create a procedure that generates a random string of length L, containing all capital letters. When calling the procedure, pass the value of L in EAX, and pass a pointer to an array of byte that will hold the random string. Write a test program that calls your procedure 20 times and displays the strings in the console window.
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
Answer:---
Assembly Language ,AL_Template_Irvine32.asm
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.