display line feed (or go the begining of the current line)
no
13d
carriage return (go to the next line) used in conjuction with 10d
no
the d stands for decimal while the h stands for hexadecimal.
assembly program format
;; this program does nothing org 100h .model small ;; the size of the program .stack 100h ;; the size of the stack ;; the 100h denotes a hexadecimal number .code ;; where your code residesstart: ;; "start" this has no special meaning ;; it is just a way to organize code ;; this is how assembly programs are endedmovax,4C00h ;; "copy" 4C into 'ah' and 00 into 'al'int21h ;; return control back to the operating systemend start ;; closes out the code organizationret
Hello World
org 100h .model small .stack 100h;; this is a 'pre-processor' that allows us to store data;; without thinking where in the world it is actually stored;; all strings should end with a '$' sign to show termination .data hello_world db "Hello, World!", 13d, 10d,'$' .codestart:movax, @data ;; copy the pointer to 'data' into the 'ax' register movds,ax ;; then move that pointer into the 'ds' register ;; 'ds' data segment register ;; 'ds' can only use data that was stored in a previous registermovdx, offset hello_world ;; set the beginning of the message into the 'dx' register ;; this makes it ready for displaying ;; by allowing access to the address of the 'data segment'movah,9 ;; '9' or '9d' or '9h' displays stringsint21h ;; return operation back to the operating system to allow execution ;; ending the programmovax,4C00hint21hend startret