delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/21/00:03:01

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Current working directory & at&t assembler
Date: Wed, 16 Jul 1997 22:14:27 +0100
Organization: None
Distribution: world
Message-ID: <22yuJDAzmTzzEwYF@talula.demon.co.uk>
References: <19970716191000 DOT PAA05698 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

XCapnKev writes:
>What I'm doing now is strictly a DOS problem, which is getting the 
>current directory.  I could have missed a libc function, 

You have. Type "info libc al getcwd" at your DOS prompt...

>but I'm pretty sure I just need to write one.  I've got the
>assembler calls to do it, but I haven't the faintest how at&t assembly 
>is:)  From ralf brown's interrupt list:
[snip]

You don't need any asm code to call such interrupts, in fact it's much
harder to do such things from asm than from C. You can't issue such
interrupt calls directly from protected mode, because the "int"
instruction generates a protected mode interrupt, while you want to call
a real mode operating system function. Use the __dpmi_int() library
function instead...

If you do want to learn AT&T asm, http://www.rt66.com/~brennan/djgpp/ is
a good plac to start.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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