delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/21/04:45:34

Date: Sun, 21 Jan 1996 11:35:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: strider7 AT unm DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Help me with inline

On Sat, 20 Jan 1996 strider7 AT unm DOT edu wrote:

> 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++:

You will be far better off if you do it in C, not in assembly.  Gcc's 
inline assembly syntax is *very* different from that of BC++.  Even in C, 
you'll have to learn how to issue software interrupts which use buffers 
from protected mode.  A good place to start is the DJGPP FAQ list 
(faq102.zip from the same place you get DJGPP), Chapter 18.

- Raw text -


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