delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/06/19:15:20

From: danspam2000 AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: int 21h and assembler
Date: Mon, 06 Nov 2000 23:46:42 GMT
Organization: Deja.com - Before you buy.
Lines: 16
Message-ID: <8u7ft0$6r3$1@nnrp1.deja.com>
NNTP-Posting-Host: 62.255.32.5
X-Article-Creation-Date: Mon Nov 06 23:46:42 2000 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; Virgo Genie V 1.0)
X-Http-Proxy: HTTP/1.1 bir[C0A80102] (Traffic-Server/3.0.3 [uScMs f p eN:t c Mi p s ]), 1.1 x52.deja.com:80 (Squid/1.1.22) for client 62.255.32.5
X-MyDeja-Info: XMYDJUIDdanspam2000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am quite new to assembler, but i need to service a hardware interrupt
very quickly, so have had to code using inline assembler code.

The problem i have is that i can't seem to get a definitive answer
about how to protect the service routine in memory. I think that i
should use int 21H, but some books and lists say to use service 48 and
some say 49, and one said 27! Also, i am not sure exactly what i need
to pass, and using which registers (some say dx and some say bx), do i
need to pass a segment or an offset, or both?

Thanks,
Dan Hartropp


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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