Message-ID: <3B156A6F.291FC4B3@mailandnews.com> From: "J. Weeks" X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: far calls with inline AT&T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 Date: Wed, 30 May 2001 17:47:27 -0400 NNTP-Posting-Host: 209.239.9.148 X-Trace: nnrp1.uunet.ca 991259024 209.239.9.148 (Wed, 30 May 2001 17:43:44 EDT) NNTP-Posting-Date: Wed, 30 May 2001 17:43:44 EDT Organization: UUNET Canada News Reader Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm currently in the process of writting an operating system (well... trying... it's an "educational thing" :) and I'm having some trouble with far calls in assembly language. I want to call a callgate at descriptor 0x28, so my code is as follows: __asm__( "mov $0x28, %ax\n" \ "mov %ax, %es \n" \ "call %es:0x0 \n"); But it keeps telling me its ignoring my prefix (which I assume to be the %es:... ). Any ideas why, and how I can go about this far call. Yeah, I know it's an easy question, but it's been a while since I last did some serious programming. Thanks a ton, Jeff PS: If possible, could you please respond via email as well, seeing as my news server is constantly down. Thanks again.