.radix 16
.model small
.stack 100h
.data
var DW 0
.code
start:
        mov ax,@data
        mov ds,ax

 
;Incarcarea constantelor in registre
        mov ax,1122
        mov bx,3344
        mov cx,5566
        mov dx,7788

 
;1) Directa
        mov var, ax
        mov ax,bx
        mov bx,cx
        mov cx,dx
        mov dx, var

;2) Imediata
        mov DS:[0],AX
        mov ax,bx
        mov bx,cx
        mov cx,dx
        mov dx, DS:[0]
 
;3) Indirecta
        mov [di+0],ax
        mov ax,bx
        mov bx,cx
        mov cx,dx
        mov dx, [di]

term: jmp term
end start
