www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/10:38:40

Date: Mon, 11 May 1998 17:38:18 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Dark Angel <mop45440 AT mail DOT telepac DOT pt>
cc: djgpp AT delorie DOT com
Subject: Re: Memory writting in assembley
In-Reply-To: <01bd7ccf$d4b5ca40$a6ef41c2@default>
Message-ID: <Pine.SUN.3.91.980511173345.20382E-100000@is>
MIME-Version: 1.0

On 11 May 1998, Dark Angel wrote:

> In djgpp i used _farpokeb to write to the video memory, because protected
> mode don't let me do a direct write.
> 
> How can it be done in assembley?

_farpokeb is written in inline assembly, see the header <sys/farptr.h>.  
Just use the assembly definition of _farpokeb from that header.

> When i wan't to call a dos interrupt in djgpp i use dpmi_int, no problem.
> But if i wnat to call the same interrupt but in assembley, can use the
> function INT?

If the interrupt function only needs values in registers, using INT is 
fine.  Otherwise, look at the assembly source of __dpmi_int (it's in the 
v2/djlsr201.zip archive, file src/libc/dpmi/api/d0300.s) and use the same 
code in your program.

- Raw text -


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