The correct choice depends on whether you are using a far procedure call or a near procedure call. For a far procedure call CS and EIP (... "IP" in your list) are preserved, and in a near procedure call just EIP is preserved.
The 3Bh service of interrupt 21h uses an offset to point to the ASCII directory name, it is DS:DX; also your dirname should be ASCIIZ (0-terminated string)... thus try this:
first define DIRNAME like so inside your data segment:
;
DATA SEGMENT
;
DIRNAME DB "D:\Dirname\NewDir",0 ; or...
>"C" combines the power of assembly language programming
>and flexibility of assembly language programming. So
>why would one run behind assembly.
>
>An Optimised "C" compiler would generate code as good as >Hand-Coded assembly. So why would any1 need assembly ?
One only...
Are you saying you are attempting to learn how to use the NASM assembler or how to use Assembly (the language)... the compiler can be downloaded and there should also be documentation on the site that you can also download. If you know how to "code for" MASM, NASM is a bit fickle...
Hmmmmm, i can't decide if AmkG was just trolling... ok, i'll bite: i'm out here coding win32 assembly yes, for apps sake... its no more difficult than using VC++ (knowledge wise) just a heck of a lot more typing... heh...
Hey sorry so late with this tip but here is an excellent resource you might find useful: http://asmjournal.freeservers.com/issues/apj_2.txt this should point you to Issue 2 where you'll find Gij's "A Guide to NASM for TASM Coders." You might also look through mammon_'s "Using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.