Skip to content

Instantly share code, notes, and snippets.

@iamgreaser
Created October 28, 2011 23:11
Show Gist options
  • Save iamgreaser/1323813 to your computer and use it in GitHub Desktop.
Save iamgreaser/1323813 to your computer and use it in GitHub Desktop.
My First Assembly Program
; nasm hello.asm -o hello.com
; dosbox hello.com
bits 16
org 0x0100
mov ah,0x09
mov dx,str_hello
int 0x21
int 0x20
str_hello: db "Hello World!", 13, 10, "$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment