Write a Terminate and Stay Resident program in Assembly language to change the background color of DOS-screen after every ten seconds. You will need to hook timer interrupt (real time interrupt) for this purpose.

Hint:
Within the interrupt timer routine, you can use timer tick count to determine the required time (ten seconds) and then call the clrscr routine. Modify the clrscr routine such that instead of setting the background color to black, add some value to the attribute byte every time interrupt timer routine calls it.

1 answer

Your teacher seems to give you a lot of hints to do the project.
I do not know if you have already gathered information on the interrupts required, such as:

http://www.htl-steyr.ac.at/~morg/pcinfo/hardware/interrupts/inte1at0.htm
or
http://www.ctyme.com/rbrown.htm

Unfortunately I have not had a chance to programme in assembler so cannot help you with the details of the actual programming.