Mail Archives: djgpp/1998/05/11/10:38:40
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 -