Posted by jimi on .
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.
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.
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:
Unfortunately I have not had a chance to programme in assembler so cannot help you with the details of the actual programming.