www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/00:02:14

Mime-Version: 1.0
To: Baptiste Malguy <baptiste DOT malguy AT wanadoo DOT fr>, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Nasm in 32-bit and addressing memory ( for interruptions
... )
Date: Sun, 10 May 1998 20:54:46 -0700
Message-ID: <19980511035425.AAI4598@ppp107.cartsys.com>

At 12:43  5/11/1998 +0200, Baptiste Malguy wrote:
>Hello !
>
>well, I suppose this question has might be ever been heard, but I have
>no answer to this, so ...
>if anybody has got it, he would really make me happy !
>The problem is :
>-I use NASM,
>- in 32-bit mode ( COFF)
>- I want to use VESA interruptions
>- When I give to an interruption, the address of a buffer ( example :
>function 4Fh, 00h for int 10h),
>this interruption find the address I give it in 16-bit mode, but not in
>32-bit mode, as it's in protected mode, so non-segmentation.
>- So, how to solve this problem, PLEASE !!!

In general, you will need to make a buffer in conventional memory and move
the data to/from it. You may use the one used by DJGPP's library functions
if it's big enough (normally 16K but can shrink as small as 2K). FAQ section
18.2 talks about this.

>Can you give an explicit example, it would be really great, as I don't
>"practise" the ASM for a very long timle !

It's a bit too complicated to write an example off the top of my head, but I
expect the FAQ will help you. If you still have trouble after reading it,
post again.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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