Write an Assembly program (.asm file) that shall be executed as Terminate and St
ID: 3626584 • Letter: W
Question
Write an Assembly program (.asm file) that shall be executed as Terminate and Stay Resident (TSR) program and performs the following operations.• Clears the whole screen when executed for the first time and DOS prompt shall be returned back to User immediately as TSR does.
• The user can type any command but on pressing the key g, the whole background color of DOS screen shall change to “GREEN”.
• Similarly when the user presses the key b, the whole background color of DOS screen shall change to “BLUE”.
Explanation / Answer
You can check which key is pressed with the help of keyboard interrupt and change the background color accordingly.