delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/20/21:47:38

From: strider7 AT unm DOT edu
Date: Sat, 20 Jan 1996 19:35:16 -0700
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Help me with inline

Im trying to set my palette and i need to put the offset of a pointer in 
the dx register and the segment of the pointer in the es register.  Here's 
what it looks like in bc++:

void setpalette(char *color_regs)
{
 asm{
     les dx, color_regs;
     mov ah, 10h;
     mov al, 12h;
     mov bx, 0;
     mov cx, 100h;
     int 10h;
    }
} 

Since gcc doesnt recognize 'les', how can i do this?  Please, please, 
someone help me.

- Raw text -


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