title Hello World Program (hello.asm) ; This program displays "Hello, world!" dosseg .model small ;Identifies type of memory model to use .stack 100h ; Identifies size of stack segment .data ;Contains all variables for the program .code ;Contains all code from program main proc mov ax,@data ;Required to setup the data segment in the ds register. mov ds,ax ; unconditional jump mov bx, 55h inc bx jmp target inc bx inc bx target: dec bx dec bx ; loop based on cx mov bx, 0 mov cx, 5 start: inc bx inc bx loop start ; calling a procedure mov bx, 10h call myproc ; terminate mov ax,4C00h ;Required to terminate program normally int 21h myproc proc inc bx inc bx inc bx ret myproc endp main endp end main