News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

file creation/writing

Started by stebra, November 22, 2007, 10:58:12 PM

Previous topic - Next topic

stebra

Hello again,
                  Having learned how to create, open and write to a file using the int21 routines, i find that my buffer containing 31h,32h,33h etc. writes 1,2,3 etc to the file. Is this the function of int21 ?........Is it possible with this interrupt to print exactly what the buffer holds.........31h etc to the file ?
Regards.
ps...........Many thanks for fine replies from people out there !!

                 

MichaelW

If you write the byte values 31h, 32h, 33h, etc to a file and then view the file as text, you will see the characters “1�, “2�, “3�, etc. It’s a matter of how the viewer is representing the byte values. If you dump the file using the DOS DEBUG program you will be able to see both the hex representation and the ASCII representation. If you need to know how to do that, I posted a DEBUG tutorial here:

http://www.masm32.com/board/index.php?topic=1993.msg16019#msg16019
eschew obfuscation

eek

This interpreter will show you whats going on in the early stages.
Then you can apply that knowledge to help you out with whatever assembler you use.

http://www.btinternet.com/~btketman/tutpage.html