Re: Somewhat confused with Interrupts/TSRs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Coppens wrote:
Hello people.

I accepted the task of trying to get a very old datalogging program
working for a friend. It is needed to read an older sensor, and
apparently no other software is available.

It's a bit large (170 kB exe) to disassemble completely, but cursory
investigation shows it was written in Turbo Pascal. Apparently the CRT
unit was included, which makes executable use internal keyboard access
instead of MsDOS functions.

All this is important, because I want to simulate keypresses and the TSR
doesn't seem to work with any CRT using Pascal program.

I don't understand this statement. Do you mean that there is another
TP program which uses the CRT module and which must run with this
TSR, but does not?

I followed the program to be using Int16 for key input, which probably
explains why no Int28 or Int1C calls are made anymore (needed for the
TSR to work)...

I also don't follow this. The Int16 BIOS calls don't disturb the
clock interrupts, AFAIK. I've used them many times.

I tried to follow where 16h goes to, but, using debug in DOSemu, this
leads to a HLT instruction...

Sounds like the TSR may be trying to guard itself against debug. I wrote
some device drivers 'way back on contract, and the people I worked
for wanted to prevent them from running when debug was being used.

Does anyone know of this (TSR) problem or can anyone suggest a solution?

You could try stuffing the BIOS type-ahead buffer. Is there a reason
you don't have source? Also, ISTM that you may have uncovered
an incompatibility. Are you running actual MSDOS, or freedos?
You might try running actual MSDOS rather than freedos, still
using dosemu.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux