Write an ASSEMBLY PROGRAM that moves the cursor to a random location within a vi
ID: 3687622 • Letter: W
Question
Write an ASSEMBLY PROGRAM that moves the cursor to a random location within a virtually bounded box with 80 columns and 25 rows in the output console. Upon reaching a random location in the virtual box, a symbol should be drawn at that place and a two second delay should be triggered. After the delay, the old character should be removed, a new random location drawn and the process should repeat. This should continue indefinitely until the user hits the ESCAPE key, which will cause you program to exit.
Code should be written to work when put into Visual Studio.
Explanation / Answer
.data
caption db "Dialog Title", 0
HelloMsg BYTE "This is a pop-up message box.",80,25.
BYTE "Click OK to continue...", 0 .
Code
call Crlf 80 cols 25 rows
mov eax,2000 ;( 2 second)
call Delay
Jmp destination
Hit(Esc here)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.