From: firewind Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline assembly? Date: 4 Sep 1997 22:37:01 GMT Organization: Netcom Lines: 17 Message-ID: <5und6d$acu@sjx-ixn4.ix.netcom.com> References: <340E1355 DOT 3354 AT ece DOT uci DOT edu> NNTP-Posting-Host: elp-tx2-08.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ying Qin wrote: > BTW, can anyone tell me how to use far jmp to jump to specific > address(selector:offset) in inline assembly? Thx. Take a look at the info libc.a docs. The functions (yes, you have to use functions, there's no such thing as a 'far jmp' in DJGPP) you are looking for are __dpmi_simulate_real_mode_procedure_retf() (if the function there returns with a 'far ret') and __dpmi_simulate_real_mode_procedure_iret() (if the function returns with an 'iret'... useful for conditional chaining). -- [- firewind -] [- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -] [- "You're just jealous because the voices talk to -me-." -]