Article View: comp.os.msdos.programmer
Article #7977Need help in TSR (80x86 asm) calling C
From: Minghua Yao
Date: Tue, 23 Apr 1996 00:00
Date: Tue, 23 Apr 1996 00:00
5 lines
1270 bytes
1270 bytes
I have a C module which uses "fopen()" to open a file. When called by a C main(), the module works well and the file can be opened. But if this module is called by a TSR code (which is loaded at an interrupt not used by the DOS, and is executed by activating this interrupt), the file which does exist cannot be opened often times. Sometimes (seldom,though) the file can be opened. If so, the machine will die. The behavior seems to be undefinte. The working enviroment is DOS. I use 80x86 assembly for The TSR and Borland C for the C module. The C module is resident part of the TSR. Anybody's help will be greatly appreciated.
Technical Details
Message-ID:
<4ljfha$s8s@independence.ecn.uoknor.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,c9a50b8babe96bc5,start X-Google-Attributes: gid10f6aa,public X-Google-Thread: 10d683,c9a50b8babe96bc5,start X-Google-Attributes: gid10d683,public X-Google-Thread: f7d8d,c9a50b8babe96bc5,start X-Google-Attributes: gidf7d8d,public From: myao@mailhost.ecn.uoknor.edu (Minghua Yao) Subject: Need help in TSR (80x86 asm) calling C Date: 1996/04/23 Message-ID: <4ljfha$s8s@independence.ecn.uoknor.edu> X-Deja-AN: 151237978 organization: University of Oklahoma, Engineering Computer Network newsgroups: comp.os.msdos.programmer,alt.lang.asm,aus.computers.ibm-pc