delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/10/03:45:17

Date: Thu, 10 Jul 1997 10:43:59 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: 1 AT 1 DOT com, Jon Martin <jmartin AT obed DOT cs DOT ualberta DOT ca>
cc: djgpp AT delorie DOT com, 1s AT ge1ties DOT com
Subject: Re: Help! Confused by problems with VESA programming.
In-Reply-To: <33C35E74.79EA@ge1ties.com>
Message-ID: <Pine.SUN.3.91.970710104205.19359G-100000@is>
MIME-Version: 1.0

On Wed, 9 Jul 1997, _ wrote:

>         regs.x.ax = 0x4F00;
>         regs.x.di = __tb & 0x0F;
>         regs.x.es = (__tb >> 4) & 0xFFFF;
> 
> This should be changed to 
> 
>     regs.x.di = __tb & 0xfffF;
>     regs.x.es = (__tb & 0xFFFF0000)>>4; 

This change is redundant: both ways should work the same.  Keep in
mind that in real mode, there's more than one way to decompose a
linear address into a SEGMENT:OFFSET pair.

- Raw text -


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