christheprogrammer
Programmer
Hi all,
I am trying to write a C function using inline asm to change the directory in the dos shell. I am using mingw (dev C) to compile and I think the trouble lies in the
"int 21h" function call. Here is the asm code I want to execute:
mov ah,3Bh
mov dx,"DIRNAME"
int 21h
Simple, but trying to find examples on this stuff is hard.
Thanks & good weekend Chris
I am trying to write a C function using inline asm to change the directory in the dos shell. I am using mingw (dev C) to compile and I think the trouble lies in the
"int 21h" function call. Here is the asm code I want to execute:
mov ah,3Bh
mov dx,"DIRNAME"
int 21h
Simple, but trying to find examples on this stuff is hard.
Thanks & good weekend Chris