Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How can I write a TSR program in C (what's the assembler code and how do I incorperate it in the code, an example would help)? Say, a program that will display the time on the screen and update it.

Try this link:
http://oak.oakland.edu/pub/simtelnet/msdos/turbo_c/00_index.txt
Whole heap of turboC progs including a TSR one.
regards

Try the following program (TSR)
#include
char far *scr = (char far *)0xB8000000L;
int ticks;
void interrupt (*prev)();
void interrupt our();
void main()
{
prev = getvect(0x08);
setvect(0x08,our);
keep(0,300);
}
void interrupt our()
{
ticks++;
if(ticks==182)
{
writestring("Suresh - Yellowmoon",5,5,23);
ticks = 0;
(*prev)();
}
writestring(char *s,int r,int c,int atb)
{
while(*s) writechar(*s++,r,c++,atb);
}
writechar(int ch,int r,int c,int atb)
{
*(scr+r*160+c*2) = ch;
*(scr+r*160+c*2+1) = atb;
}If U want that Clock Program Please mail to me.
Yellowmoon

could anyonw give me an idea how do i note down the time of the interrupt requests of the com2 port in a dik file .im using nt.

how can i start writing a program in c. Is itpossibleto write the same with c++. give me some sample codings

![]() |
Java to executables
|
Learning to program with ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |