Date: Mon, 11 May 1998 17:38:18 +0300 (IDT) From: Eli Zaretskii To: Dark Angel cc: djgpp AT delorie DOT com Subject: Re: Memory writting in assembley In-Reply-To: <01bd7ccf$d4b5ca40$a6ef41c2@default> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 . 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.