News:

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

print statement

Started by DanWebb314, April 13, 2012, 03:29:11 AM

Previous topic - Next topic

DanWebb314

I am very new to Assembly programming.

print "Hello World",13,10

Where do I find out what the " ,13,10" is for in the above print statement?  I have searched and can't find how this print statement works.  A website which explains this might also have a lot of other info I could use.

Thank you
Newbe  :8)



mineiro

means CR and LF, Carriage Return and Line Feed.
Try this:
open notepad, hit 3 consecutive "enter key", save this file as "enter.txt".
Open qeditor.exe, menu "tools", "load binary file as hex", point to "enter.txt" and you will see some "0dh,0ah", exactly the representation of 13,10 in hexadecimal.
Next step is to know how "Tab" key is.

ps: while testing this using "load binary file as hex", I have found that if the file have only 1 enter key (2 bytes), so qeditor does not show "0dh,0ah" as expected, it show only "0dh".


DanWebb314

Thank you - that was very helpful

SteveAsm

Quote from: mineiro on April 13, 2012, 04:19:09 AM
means CR and LF, Carriage Return and Line Feed.

As mineiro correctly states CR, LF = Carriage Return and Line Feed, are ascii characters.

Every Assembly Language programmer needs to know this information:
http://www.asciitable.com/