> How to print new line in assembly language?

How to print new line in assembly language?

Posted at: 2014-12-18 
i'm writing a code in assembly to add two number and want to print my answer on next line.

please help

To some extent this will vary depending on which assembly language you are using (almost every processor has its own language and there are literally thousands) and how you are outputting the text.

If your processor is communicating via the command line or a terminal then you can output the control code for carriage return and/or line-feed. The exact code will depend on the processor, but for example if you are using ASCII then 0x0D and/or 0x0A will print a new line character.

Depending on the cross-compiler or assembler you are using you may be able to embed this in a string using, for example:

defm "HELLO\n" or DB "HI\r\n" check the documentation for your development environment for the precise details.

i'm writing a code in assembly to add two number and want to print my answer on next line.

please help