www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/13/11:14:36

Date: Wed, 13 Jul 94 10:15:29 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: hvb AT netrix DOT com
Cc: pfau AT ind DOT e-technik DOT uni-stuttgart DOT de, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: help
Reply-To: babcock AT cfa DOT harvard DOT edu

> Or you can use the code below:
> 
> unsigned short far *adr;
> unsigned short val=0xffff;      /* dummy value */
> adr=0xe00d0000; /* simplified; 
>                    normally a MACRO MK_FP is used to set SEGMENT 
>                    and OFFSET address in the PC memory space */
> *adr=val;       /* send 16 bit value val to register at 0xD0000 */

It may not matter to the original poster, but this won't work under dpmi.

- Raw text -


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