Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What the hack is a TSR program?

hack program TSR
0
Posted

What the hack is a TSR program?

0

TSR stands for Terminate and Stay Resistant. A TSR program installs itself (or gets installed) and will stay permanent in the system even if the program returns from its main routine. The clock which we will develop here is an excellent example of a TSR program. We want a clock which outputs its time on the statusline, but we want also to use the calculator’s commandline as usual. A program which loops within its main routine (like the one developed in tutorial S1P2) cannot be used for this purpose. The clock program has to return from its main routine letting the system think that it has finished. A simple but COMPLETELY WRONG solution whould be to install an own interrupt handler, but don’t restore the old one before returning from the main routine. What’s wrong with this approach? In general there exists three kinds of memory blocks within the TI: • unused memory blocks • used memory blocks which position is NOT locked • used memory blocks which position is locked Used memory blocks

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.