delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/28/12:51:58

Date: Tue, 28 May 2002 12:49:16 -0400
Message-Id: <200205281649.g4SGnGg27291@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <3CF4F80E.52456363@arcor.de> (message from Lars Erdmann on Wed,
29 May 2002 17:47:26 +0200)
Subject: Re: farpeekw under Windows NT
References: <3CF4EE40 DOT 19E44519 AT arcor DOT de> <200205281523 DOT g4SFNZw26739 AT envy DOT delorie DOT com> <3CF4F80E DOT 52456363 AT arcor DOT de>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I have a little program I wrote to rearrange the LPT entries so that
they made sense for my purposes.  I include it here in its entirety,
but I don't know how well it will work in NT.

> I wonder if NT messes around with the bios data segment (for whatever
> reason) ?

Most certainly.  Like I said, it's emulating hardware.  The 9x series
is more likely to show you the real hardware.  And you should always
use the BIOS calls if they serve your purpose, but you'll still have
the 3bc/378/278 issue.

cseg    segment
        assume  cs:cseg,ds:cseg
        org     100h

start:
        mov     ax,40h
        mov     ds,ax
        mov     ds:[8],378h
        mov     ds:[10],3bch
        mov     word ptr ds:[12],0
        mov     word ptr ds:[14],0
        mov     ax,4c00h
        int     21h

cseg    ends
        end     start

- Raw text -


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