Solved

Help with TSR

Posted on 1997-08-12
2
202 Views
Last Modified: 2010-04-16
I would like to know the steps required to create a TSR in turbo pascal.  I would like to be able to load a simple screen saver, or that type of program.
0
Comment
Question by:noskillz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
kellyjj earned 100 total points
ID: 1215405
Turbo Pascal has a command called "keep"  This loads the program into memory at 33h (I don't remember exactly,  but it loads into the same you would have to if you using assembler]

here is a sample program that would print "K" in random locations.  NOTE:  I dont' think you can do this in a windows enviroment.  It must be dos.  Also the syntax might not be exactly on since I have writen in Pascal in a while.  I have been working on UNIX.

program test;
uses dos,crt;
var
x,y:integer;
begin  {main}
     randomize();
     repeat
        x=random(79)
        x=x+1;
        y=random(24);
        y=y+1;
        gotoxy(x,y);
        write("K"):  
     until (keypressed)

     keep(1);
end.

I hope this helps.  The one being passed to keep is the dos exit code telling dos this is a TSR. [double check this]   Mind you this is not a great example but it should get you going.
0
 

Author Comment

by:noskillz
ID: 1215406
Thanks for the help.  I had ever heard of that command before.  I hope it works.  
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
Make the most of your online learning experience.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question