From: "Samuli Järvelä" 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 Precedence: bulk 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