Mail Archives: djgpp/1997/07/21/00:03:01
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 -