delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/04/19:19:05

From: firewind <firewind AT metroid DOT dyn DOT ml DOT org>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ying Qin <yqin AT ece DOT uci DOT edu> wrote:

<snip>

> 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-."          -]

- Raw text -


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