I need to create a folder in C using assembler, this is what I have: union REGS registros; registros.x.dx = Here I have to put the name of the folder; //registros.h.ah = 0x57; int86(0x33,®istros,®istros); How do I put the folder name if the registre dx is of type integer ?
you have to store into dx pointer to the string with folder name. ++++++++ be sure about proper ds value also, as string pointer is ds:dx, and it is strange to me if you are using int 33h, what is DOS mouse functions, if you mean int 33 (without "h") - it would be looking more realistic: int 33 = int 21h, but then ah=57h means "time stamp", while for mkdir has to be ah=39h (39h=57). watch on the details!
For those who are interested in interrupt handling with C, more information can be found @ http://gd.tuwien.ac.at/languages/c/programming-bbrown/advcw1.htm http://www.p-dd.com/chapter8-page1.html