delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/21/18:19:28

From: "Samuli Järvelä" <sjarvela AT mbnet DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: FP_SEG and FP_OFF in DJGPP
Date: 21 May 1997 09:25:35 GMT
Organization: MBnet, Finland
Lines: 17
Message-ID: <01bc65c8$dc0dfca0$ac6e9cc3@MBInternet.mbnet.fi>
NNTP-Posting-Host: ppp317.mbnet.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've tried to translate the following asm(in pascal) procedure to DJGPP:
ASM
  mov cx, %variable
  mov bx, offset %another_variable
  mov ax, seg %another_variable
  mov es, ax
  mov ax, 1510h
  mov int 2fh
end;

Could someone help me and say how could this be translated to DJGPP.
The problem isn't converting it from Intel-syntax to AT&T-syntax, but the
offset and seg are. How can I get offset and segment values out from a
address?
I read the FAQ and it didn't help me at all.

samppa AT writeme DOT com

- Raw text -


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