delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/30/23:38:29

Message-ID: <3520733B.3F25@post.comstar.ru>
Date: Tue, 31 Mar 1998 08:38:19 +0400
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: Peter Hanzlik <hanzlikp AT sbox DOT zu-graz DOT ac DOT at>
CC: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Re: Accessing Serial Ports
References: <351F98C2 DOT 445C1A4A AT sbox DOT zu-graz DOT ac DOT at>

Peter Hanzlik wrote:
> 
> I' ve got some C-Sources for accessing the serial ports of a PC, but
> there are some gcc -
> Problems.
> 
> How to define a far-Pointer ?
> the line void interrupt far *int_vector doesn't work.
> Where are the library-functions setvect and getvect ?? (not in dos.h
> ?)
> 
> Peter
Handling interrupts under protected mode is not so easy task as under
real mode,
so you can't just declare interrupt far *int_vector. For more
information about
interrupts handling see FAQ, for serial communications get one of the
lib -
BCSerio, SVAsinc or DZComm.

-- 
____ ____ 
|   \   /   Dim Zegebart
____/____   

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multitasking kernel for Allegro (based on PDMLWP)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019