delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/09/19:08:28

To: s257m AT unb DOT ca
Cc: djgpp AT delorie DOT com
Date: Sun, 9 Aug 1998 18:15:56 -0700
Subject: Re: Extended Inline Assembly Help
Message-ID: <19980809.181823.4382.0.zixyer@juno.com>
References: <199808082021 DOT VAA24824 AT sable DOT ox DOT ac DOT uk> <902615331 DOT 608967 AT samba DOT news DOT big-orange DOT net>
<35CDE597 DOT 9FBD6EBE AT unb DOT ca>
From: zixyer AT juno DOT com (Zixyer S Qwerty)

On Sun, 09 Aug 1998 15:08:23 -0300 Endlisnis <s257m AT unb DOT ca> writes:
>
>But:
>asm ("movl $0x13, %%eax; int $0x10"::"eax");
>
>THIS DOES WORK!!  How come this code changes the mode to VGA?  If I 
>can't call real-mode interrupts from protected mode then why does this
code 
>work (and are there any potential side-effects?)
>

It works because if there isn't a protected mode interrupt installed
it'll go right to
the real mode one, so normal "int" instructions would work.

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

- Raw text -


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