Article View: net.lang.pascal
Article #295MSDOS Turbo Pascal: re-assigning conOutPtr
From: D. Tennenhouse
Date: Thu, 29 May 1986 21:06
Date: Thu, 29 May 1986 21:06
16 lines
1203 bytes
1203 bytes
I am trying to re-assign ConoutPtr using MSDOS Turbo Pascal. In this way, I
should be able to use my own console output driver. I was able to do this
easily in Z80 Turbo Pascal as follows:
ConOutPtr := Addr( MyOutputRoutine );
where MyOutputRoutine is a previously defined procedure.
This does not work with the MSDOS version since the addressing schemes are
different. I thought I would be able to do it like this:
ConOutPtr := Ptr( Cseg, Ofs( MyOutputRoutine ) );
but this gave me a compile time type mismatch. The Z80 way of doing it gives
a syntax error. Anyone know how to do this?? Thanks.
Technical Details
Message-ID:
<2864@utcsri.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsri!thouseShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsri!thouse From: thouse@utcsri.UUCP (D. Tennenhouse) Newsgroups: net.lang.pascal,net.micro,net.micro.pc Subject: MSDOS Turbo Pascal: re-assigning conOutPtr Message-ID: <2864@utcsri.UUCP> Date: Thu, 29-May-86 17:06:40 EDT Article-I.D.: utcsri.2864 Posted: Thu May 29 17:06:40 1986 Date-Received: Thu, 29-May-86 17:13:20 EDT Reply-To: thouse@utcsri.UUCP (D. Tennenhouse) Organization: CSRI, University of Toronto Lines: 16