Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote