X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C432822.C2622E1A@yahoo.com> From: CBFalconer 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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)