Questions tagged [tsr]

A TSR (Terminate and Stay Resident) program uses system call in DOS like operating system to return control to the OS but stay resident in memory and react to hardware or software interrupts.

A TSR (Terminate and Stay Resident) program uses system call in DOS-like operating system to return control to the OS but stay resident in memory and react to hardware or software interrupts.

24 questions
9
votes
2 answers

Help Writing TSR Program(s) in NASM Assembly for DOS

I've been trying to write TSR (Terminate-Stay-Resident) programs (in general) in Assembly (16-bit) for MS-DOS. I've read through a Wikipedia page on TSR and also a page on using it specifically in DOS (but it seems to be teaching it in C and not…
Alex Ozer
  • 459
  • 5
  • 14
4
votes
3 answers

DOS execution of assembly code

I'm writing a chunk of assembly that will register a tsr and then exit. I'm struggling to figure out how to properly assemble this to a format that I can execute in dos. i'm have access to ubuntu 9.04 and windows xp. (linux method is preffered). If…
Without Me It Just Aweso
  • 4,593
  • 10
  • 35
  • 53
2
votes
2 answers

Use of keep(int,int) function in TSR programming using dos.h

While studying tsr programming i have seen the use of certain code which i cannot understand.. The example cede part is(in c): (please explain the bolded sections) #include "dos.h" #include"stdio.h" void interrupt our(); void interrupt…
Jinu Joseph Daniel
  • 5,864
  • 15
  • 60
  • 90
2
votes
1 answer

TSR Program to change case of characters on screen in windows/dos

I would like to know how can we change the letters of the characters on screen using C. It is a TSR program using dos.h header file.
Jinu Joseph Daniel
  • 5,864
  • 15
  • 60
  • 90
1
vote
0 answers

How to scan for keys in C for a TSR (MS-DOS)

I am trying to make somewhat a TSR program (background process) for MS-DOS in C. I want the program to print "It works" and kill itself when a user press F2. But my code doesn't work. When I start .exe dos freezes and even spamming F2 for 18.2…
1
vote
1 answer

My TSR program freezes when executed a second time

I have got some experience with FASM and I learned that so well. Now, I wanted to learn TASM syntax. I wrote an example program which is TSR. Here`s my code .model tiny .8086 .stack 200h .data Message db 'Example0 is loaded in…
micheal007
  • 137
  • 9
1
vote
2 answers

Error after releasing memory allocated for .EXE residential program

I'm trying to get answers for a week. :) But, maybe i ask wrong question. So here is it: I need to load and then unload residential program (set some vector and then get back to standard), i do that but after installing standard vector i try to free…
GALIAF95
  • 619
  • 1
  • 10
  • 25
1
vote
1 answer

running PHP as a service that listen to serial ports

(how) Can I execute a PHP code, that will stay a live and listen to a serial port? Currently I use python and other stand-alone environments. Please note: my problem is not reading the port, but keeping the connection a live
yossi
  • 3,090
  • 7
  • 45
  • 65
1
vote
2 answers

interrupt 21 h function 31 h DX value

I am writing my first TSR. I know I have to use function 31H of INT 21H. When i looked it up, I found out that the value in DX is the "memory size in paragraphs". I don't know how to calculate that and GOOGLE didn't help. I want to know how can I…
Ayman Salah
  • 1,039
  • 14
  • 35
1
vote
3 answers

Assembly on DOS (TASM), creating TSR with a new handler on int 21h

I have a trouble with making TSR com file for DOS. It should set a new handler on a 21'th interrupt, terminate and stay resident. New handler should transfer control to an old interrupt 21h handler. I save its interrupt vector, but have no idea how…
gukoff
  • 2,112
  • 3
  • 18
  • 30
1
vote
2 answers

Assembly TSR - my program crashed and I don't know the reason

I'm writing a simple TSR program but I get error. I try to execute it by Int 90H but for some reason it's crashed. I'm new with TSR so the problem might be simple. TSR: ; Copy non-small letters .model tiny .code ORG 100H start: push bp …
iLoveC
  • 97
  • 6
  • 12
0
votes
0 answers

INT 21H, AH=031H - Not supported yet

pusha macro ;macro to push pushf ;all registers push ax push bx push cx push dx push si push di push ds push es endm popa ;macro to pop pop es ;all program pop ds pop di pop si pop dx pop cx pop bx pop ax popf endm captureint macro…
Nawaf
  • 9
  • 1
0
votes
0 answers

Is there a way to extract the timestamp from a .p7m signature? (P7M with timestamp on signature -> .TSD / .M7M)

How you can see from the below image from Gosign interface, somehow we made the timestamp on the signature rather than the file itself, therefore we cannot proceed with the requested task. Is there any way you can think of in order to extract this…
Alessandro
  • 33
  • 5
0
votes
1 answer

Create a simple memory resident program

I was always intrigued on how TSR programs worked so I decided to begin creating an extremely primitive one. This C program reads keyboard keystrokes and prints them on console screen unless you type a then b then c then a message box will tell you…
user10191234
  • 531
  • 1
  • 4
  • 24
0
votes
0 answers

creating a keylogger in Fasm

I make a keylogger in Fasm for MS-DOS however when i run that freeze my computer because are some thing wrong at segment:offset memory used by my keylogger. This is the source that i code: cli push es mov ax,0 mov es,ax es mov bx,[24h] es mov…
1
2