home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7400 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.2 KB

  1. Path: sparky!uunet!mcsun!sun4nl!wtrlnd!contrast!postmaster
  2. From: berend@contrast.wlink.nl (Berend de Boer)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Overlays and device drivers
  5. Message-ID: <724116564.AA00693@contrast.wlink.nl>
  6. Date: Fri, 11 Dec 1992 22:13:06
  7. Sender: postmaster@contrast.wlink.nl
  8. Lines: 35
  9.  
  10. Duncan Murdoch wrote in a message to All:
  11.  
  12.  DM> I assume that your device driver is being called from
  13.  DM> outside your program. If so, it won't be part of the chain,
  14.  DM> so it had better not do anything to  trigger a swap:  don't
  15.  DM> call any code that's overlaid from within it. 
  16.  
  17. Hello Duncan,
  18.  
  19. I reply again to your message, because, after some further thinking, I'm
  20. not sure if these last two sentences are the case in my program.
  21.  
  22. What's going on.
  23.  
  24. I wrote a device driver unit with OpenFunc, InOutFunc etc. I use this
  25. unit in the following way:
  26.  
  27. unit A;
  28. uses Device;
  29. begin
  30.   write(lst, 'Hello world');
  31. end.
  32.  
  33. The device driver is actually a printer unit with special functions. Can
  34. I call using lst to acces the functions in the Device unit "being called
  35. from outside your program" to quote your words?
  36.  
  37. If you would be so kind to clarify this point,
  38.  
  39. Yours sincerely,
  40.  
  41. Berend. (-:
  42. fido: 2:281/527.23
  43. email: berend@contrast.wlink.nl
  44.  
  45.