Solved

Help with TSR

Posted on 1997-08-12
2
197 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now