Geeks With Blogs
Mark Pearl


In it’s simplest form… the following asm code should work

org 0x100
bits 16
jmp main

message: db 'example text ', 0xa,'and some more text', 0xa, 'and another line','$'

mov dx,message
mov ah,09h
int 21h
int 20h


Points to look out for…

  • 0xa is a newline operand…
  • ‘$’ signifies the end of the text

Everything else should look pretty standard…

Posted on Saturday, March 31, 2012 12:57 PM NASM | Back to top

Comments on this post: Writing multiple lines of text to the console in nasm

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © MarkPearl | Powered by: