www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/19/10:07:13.1

From: "Andrew Davidson" <andrew AT lemure DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro interrupts in ASM
Date: Fri, 19 Mar 1999 12:00:41 -0000
Organization: Customer of Planet Online
Lines: 17
Message-ID: <7cte9d$ro2$1@news6.svr.pol.co.uk>
NNTP-Posting-Host: modem-7.praseodymium.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 921844845 28418 62.136.29.7 (19 Mar 1999 12:00:45 GMT)
NNTP-Posting-Date: 19 Mar 1999 12:00:45 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Does anyone know if the asm() function disables interrupts before passing
control over to the given code? I am executing machine code stored in memory
but am passing the address of this memory to a one line assembler routine
which calls the machine code. This all seems to work well but when I try and
set up an interrupt using Allegro's install_int_ex() function it totally
fails to occur.

On a similar note, how much can I realistically do within one of these
interrupts? I'd ideally like to redraw an entire 320x200 screen. Does
Allegro's interrupt handler disable all interrupts on entering the function
passed to install_int_ex() and enable them when its finished?

Thanks for your time,
Andrew



- Raw text -


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