C:\>debug
-a
0C89:0100 jmp 111
0C89:0102
-e db 'C:\Exam.txt',0
-a 111
0C89:0111 mov ah,3c
0C89:0113 mov cx,0
0C89:0115 mov dx,102
0C89:011D int 21
0C89:011F mov ah,4c
0C89:0121 int 21
0C89:0123
-h 123 111
0234  0012
-rcx
cx 0000
:0011
-n exam.com
-w
Writing 00011 bytes
-q
C:\>
Posted on 2011-11-28 05:52:42 by Helegurbann
Of course not! You're jumping over the relevant code. Try "jmp 108". Where did that "111" come from? That jumps into the middle of your "int 21"!

Best,
Frank

Posted on 2011-11-28 11:19:54 by fbkotler
Ah sorry.I changed my codes.But this is not creating a file.
Posted on 2011-11-28 11:25:15 by Helegurbann
Well... what happens? Is the carry-flag set after your "creat" interrupt? If so, the error code should be in ax. If not (NC), ax should hold the "handle" - probably 4 or 5(?). You may need to close the file before it actually shows up on disk...

Best,
Frank

Posted on 2011-11-28 11:48:11 by fbkotler
I sweated fasm in equal codes ms-dos debugger.
Posted on 2011-11-29 14:53:20 by Helegurbann
Well, that's nice. Have you created the file or not?

Best,
Frank

Posted on 2011-11-29 15:18:49 by fbkotler