delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/14/14:15:15

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C432822.C2622E1A@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ASM syntax
References: <a1uvh5$bi0$1 AT sirius DOT dur DOT ac DOT uk>
Lines: 22
Date: Mon, 14 Jan 2002 19:03:47 GMT
NNTP-Posting-Host: 12.90.172.244
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc06-news.ops.worldnet.att.net 1011035027 12.90.172.244 (Mon, 14 Jan 2002 19:03:47 GMT)
NNTP-Posting-Date: Mon, 14 Jan 2002 19:03:47 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andrew Fairburn wrote:
> 
> dont know if this is teh right place to put this but i was hoping someone
> could give me hand with the at&t assembler syntax.
> 
> ive been writing a function in assembler code for a real mode callback. The
> code needs to take the ss:sp, of where the program was when this interupt
> function is called, from the register pair ds:si then. It uses this to read
> the cs:ip address left on the stack when the interupt was called and then
> places it back in a memory address pointed to by the register pair es:di. It
> then returns with an IRET. unfortunatley my code doesnt work:-

Why would you want to exit with an IRET?  Did you call it through
an interrupt? That pops the flags off the stack before doing a
RET.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   (Remove "XXXX" from reply address. yahoo works unmodified)
   mailto:uce AT ftc DOT gov  (for spambots to harvest)

- Raw text -


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