delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/10/19:56:29

Date: Fri, 10 Oct 1997 16:51:33 -0700 (PDT)
Message-Id: <199710102351.QAA03144@adit.ap.net>
Mime-Version: 1.0
To: psycho AT backmeup DOT net DOT au, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: ASM And Interrupts

At 11:33  10/10/1997 +1000, Robert Bilton wrote:
>I Have A Problem, I LOVE Doing Assembly In The Middle Of My Code, And
>Often I Need To Do Interrupts With It, Eg SVGA PutPixel Etc...
>
>Just One Problem...
>
>How Do I Call Interrupts From Within An Inline ASM Statement With
>DJGPP??
>
>Couldn't Find ANYTHING On It, Found FAQ's Saying About The %% Addressing
>And The AT&T Byte Order Etc, But Nothing On Interupts... 
>
>ANY Help Is VERY Muchly Appreciated...
Use this syntax:
int $0x10

inside your inline statement. In the AT&T syntax, immediate values are
preceded by a $ sign, and use C-style hex/decimal numbers.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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