Date: Thu, 10 Jul 1997 10:43:59 +0300 (IDT) From: Eli Zaretskii To: 1 AT 1 DOT com, Jon Martin 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.