Computing.Net > Forums > Programming > C and TSR

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C and TSR

Reply to Message Icon

Name: User
Date: December 22, 2001 at 21:18:54 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Peter Rolls
Date: December 24, 2001 at 10:05:05 Pacific
Reply:

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


0

Response Number 2
Name: Yellowmoon
Date: January 20, 2002 at 00:07:49 Pacific
Reply:

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


0

Response Number 3
Name: gayathiri
Date: January 30, 2002 at 08:15:29 Pacific
Reply:

how to write a c program using tsr to capture messages and store them in the backgroung in a file?


0

Response Number 4
Name: sunil
Date: February 5, 2002 at 01:47:31 Pacific
Reply:

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.


0

Response Number 5
Name: arun natesh
Date: February 20, 2002 at 20:15:37 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: senthil
Date: April 20, 2002 at 05:43:19 Pacific
Reply:

about tsr and codings


0

Sponsored Link
Ads by Google
Reply to Message Icon

Java to executables Learning to program with ...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C and TSR

C++ and DOS www.computing.net/answers/programming/c-and-dos/9540.html

visual C++ vs C++ and C www.computing.net/answers/programming/visual-c-vs-c-and-c/8925.html

C++ and Nvidia's CG www.computing.net/answers/programming/c-and-nvidias-cg/9152.html