home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!slip208.telnet1.QueensU.CA!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: Overlays and device drivers
- Message-ID: <dmurdoch.227.724168011@mast.queensu.ca>
- Lines: 25
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <724116564.AA00693@contrast.wlink.nl>
- Date: Sat, 12 Dec 1992 13:46:52 GMT
-
- In article <724116564.AA00693@contrast.wlink.nl> berend@contrast.wlink.nl (Berend de Boer) writes:
- >
- >I wrote a device driver unit with OpenFunc, InOutFunc etc. I use this
- >unit in the following way:
-
- I haven't gone through the RTL, but a quick trace through a call to Writeln
- seems to tell me that you can't overlay a text file device driver. Some of
- the RTL routines don't set up a proper stack frame, so the overlay manager
- won't be able to trace back properly.
-
- You could probably fix this if you have the RTL; figure out which routines
- are involved in text file I/O, and make sure they all have
-
- push bp
- mov bp,sp
-
- at the start, and
-
- mov sp,bp
- pop bp
-
- (or just LEAVE) at the end. If they use BP for some other purposes, restore
- it to the stack frame value before calling your device driver routines.
-
- Duncan Murdoch
-